public Method

ClassMethods.expire_page(path)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.