I use fragment caching rather then page caching since pages are tailored
to each member. But if
somebody already has a page, there’s no point in sending it again (and
since it doesn’t appear
fragment caching automatically uses modified headers). So, I was
thinking, to minimize database
calls, is there a way to check the modification time of cache fragments
(which are expired when
new stuff is added), then use that to handle if-modified headers?
For example, for a typical page I have an item cache (created from
several queries), a menu bar
cache, latest comments cache, etc. - if I could get the latest
modification time of all those
caches, then use that (as opposed to multiple database queries to get
times). Easy way to do this?
Yahoo! Mail - PC Magazine Editors’ Choice 2005