instance method
expire_action
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.2.22.5Signature
expire_action(options = {})
No documentation comment.
Parameters
-
optionsopt = {}
Source
# File actionpack/lib/action_controller/caching/actions.rb, line 71
def expire_action(options = {})
return unless cache_configured?
if options[:action].is_a?(Array)
options[:action].dup.each do |action|
expire_fragment(ActionCachePath.path_for(self, options.merge({ :action => action }), false))
end
else
expire_fragment(ActionCachePath.path_for(self, options, false))
end
end
Defined in actionpack/lib/action_controller/caching/actions.rb line 71
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Caching::Actions