Expires the page that was cached with the path as a key. Example:
expire_page "/lists/show"
Source Code
# File action_controller/caching/pages.rb, line 60 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
<code/>and<pre/>for code samples.