rails - caches_action expire_action

Posted by mark on Stack Overflow See other posts from Stack Overflow or by mark
Published on 2010-06-01T18:42:31Z Indexed on 2010/06/01 18:43 UTC
Read the original article Hit count: 207

Filed under:
|
|

Hi

I want to expire a cached action and wondered how to generate the correct reference.

#controller
caches_action :index, :layout => false
#generates this fragment which works fine
views/0.0.0.0:3000/article/someid/posts

#sweeper
...
expire_action article_posts_path(:article_id => post.article)
# results in this
Expired fragment: views//en/article/someid/posts (0.0ms)

So this is almost ok, except the host is missing. What do I do that supplies this to the expire_action method?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about caching

Related posts about rails