Hello, everyone
I am new to Rails, but I love it very much. Now I am using RESTful route and action cache. But I failed to make the cache expired in the Sweeper.I guess there is something wrong with the arguments of expire_page(), but I just couldnât fix it.
the RESTful route is:
map.resources :posts
I want the âshowâ action expired. I use
expire_page(:controller => âpostsâ, :action => âshowâ, :id => post.id)
But after that I could still get the cached data.
Can anyone tell me how can I handle with this problem?
Thank you so much!
This is my first post in the group and English is not my mother tongue, so please forgive my offence(if any). Thanks again.