expire_page(options = {})
public
Expires the page that was cached with the options as a key.
Example:
expire_page :controller => "lists", :action => "show"
# File actionpack/lib/action_controller/caching.rb, line 116
def expire_page(options = {})
return unless perform_caching
if options[:action].is_a?(Array)
options[:action].dup.each do |action|
self.class.expire_page(url_for(options.merge({ :only_path => true, :skip_relative_url_root => true, :action => action })))
end
else
self.class.expire_page(url_for(options.merge({ :only_path => true, :skip_relative_url_root => true })))
end
end