action cache problem

Hello, everyone :slight_smile:

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.