Caching pages


How can i cache certain pages, like lists, detail pages, …

and make the cache invalid, when the object is changed.


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}