Andy Dirnberger wrote:
> Before querying the database, I check to see if the result of the
> query has been cached.  I call a function that will either return the
> value in the cache or null, either because the cache has expired or
> because it was never set.  When I receive a return value other than
> null, I skip the database query.  When null comes back, I query the
> database and update the cache.

Andy, thanks a bunch for the example.

Bev

_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show_participation.php

Reply via email to