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
<code/>and<pre/>for code samples.