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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 cool_screen_name90001 (Guest)
on 2005-11-19 23: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?

thanks
csn




__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
This topic is locked and can not be replied to.