public Method

ClassMethods.caches_page(*actions)

Caches the actions using the page-caching approach that’ll store the cache in a path within the page_cache_directory that matches the triggering url.

Source Code

# File action_controller/caching/pages.rb, line 81
def caches_page(*actions)
  return unless perform_caching
  actions = actions.map(&:to_s)
  after_filter { |c| c.cache_page if actions.include?(c.action_name) }
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.