Page caching (after the first access to a page) will write out a 
straight HTML file in /public/model/action.html to be found on any 
subsequent requests to that URL.

Subsequent requests to that URL will hit the cached page only, without 
ever invoking Rails. The notion of caches_page 'action', :if =>{stuff} 
is a non-starter.

caches_action always invokes Rails and runs your filters et al, hence 
the working :if => {stuff}

Check out http://www.railsenvy.com/2007/2/28/rails-caching-tutorial for 
an excellent tutorial on caching.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to