Hey,
How can i cache certain pages, like lists, detail pages, …
and make the cache invalid, when the object is changed.
Thx
Hey,
How can i cache certain pages, like lists, detail pages, …
and make the cache invalid, when the object is changed.
Thx
In your controller do something like
after_filter {|c| c.cache_page if c.action_name !=‘main’}
there is a way to tell rails to re-cache
don’t have it handy though {in my Long term memory}
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs