instance method
expire_page
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v3.2.22.5Signature
expire_page(path)
Expires the page that was cached with the path as a key. Example:
expire_page "/lists/show"
Parameters
-
pathreq
Source
# File actionpack/lib/action_controller/caching/pages.rb, line 65
def expire_page(path)
return unless perform_caching
benchmark "Expired page: #{page_cache_file(path)}" do
File.delete(page_cache_path(path)) if File.exist?(page_cache_path(path))
end
end
Defined in actionpack/lib/action_controller/caching/pages.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub