Method: Merb::Cache::ControllerInstanceMethods#expire_action
- Defined in:
- lib/merb-cache/cache-action.rb
#expire_action(options) ⇒ Object
Expires the action identified by the key computed after the parameters
Parameter
- options<String,Hash>
-
The options that will be passed to #expire_key_for
Examples
expire_action(:action => 'show', :controller => 'news')
expire_action(:action => 'show', :match => true)
72 73 74 75 76 77 78 79 80 81 |
# File 'lib/merb-cache/cache-action.rb', line 72 def expire_action() Merb::Controller._cache.expire_key_for(, controller_name, true) do |key, match| if match Merb::Controller._cache.store.expire_match(key) else Merb::Controller._cache.store.expire(key) end end true end |