i got a problem on caching my pages:
in my Sweeper i wrote:
class MySweeper < ActionController::Caching::Sweeper
expire_page(:controller => ‘post’, :action => ‘show’, :id =>
cache_page(:controller => ‘post’, :action => ‘show’, :id =>
The problem is ‘cache_page’ NOT work while the ‘expire_page’ works
when i open the url: /post/show/id , a cache page is created in public/
then i edit the post, the cache page was cleared by the sweeper, but
it does not be created until i reopen the show page url in brower.
this problem occured in my controller too …
any help idea? or i just misunderstand the ‘cache_page’ method?
thanks for help