I'm confused by this. I get why once the page is cached that Rails
won't execute again, but before the first cache attempt when Rails
does run, the :if should fail.

There's documentation on caches_page 'action', :if => {}, so I know
I'm not making up that format. So I'm still confused.

On Sep 24, 9:34 am, Ar Chron <[EMAIL PROTECTED]> wrote:
> 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 outhttp://www.railsenvy.com/2007/2/28/rails-caching-tutorialfor
> an excellent tutorial on caching.
> --
> Posted viahttp://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