How to expire a caches_action with a cache_path?

Posted by fstephany on Stack Overflow See other posts from Stack Overflow or by fstephany
Published on 2010-06-03T11:14:50Z Indexed on 2010/06/06 8:52 UTC
Read the original article Hit count: 116

Filed under:
|
|

I'm caching an index action with the following:

caches_action :index, :cache_path => Proc.new { |c| c.params }

expire_action :action => :index

The expire_action seems to only expire the index action without any parameters. How can I expire all the caches_action related to index ?

(it is a Rails 2.3.5 application)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby