我想使缓存的操作过期,并想知道如何生成正确的引用。
#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)
所以这几乎没问题,只是缺少主机。我该怎么做才能将此提供给 expire_action 方法?
提前致谢。