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.
--
I dream therefore I am.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---