Forum: Ruby on Rails multiple cache fragments and not-modified headers

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
cool_screen_name90001 (Guest)
on 2005-11-20 00:55
(Received via mailing list)
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
last modified/created
times). Easy way to do this?


Yahoo! Mail - PC Magazine Editors' Choice 2005
This topic is locked and can not be replied to.