On Mar 21, 3:30 am, "S. Robert James"
<srobertja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 1. What''s the behavior of caches_pages when an action returns a
> redirect?
> I''d like to only cache the page if the action renders, but *not*
cache
> the redirect
It will serve the cached page straight away, no matter what, until the
cache has expired. If you need to do redirects, use action-level
caching with a before_filter.
> 2. Any solution for using caching with a cluster of web servers? The
> sweepers won''t fire on the other web servers
One solution is to use action caching everywhere and then use a
central memcached server as your fragment store. Whenever you expire
an action, it''ll get expired on that server.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---