Module Mack::Controller::ClassMethods
In: lib/mack-caching/page_caching/controller_extensions.rb

Methods

Public Instance methods

Used to define which pages you would or would not like cached.

Examples:

 cache_pages # => will cache all pages for a controller
 cache_pages :only => [:index, :show] # => will only cache the index and show pages for a controller
 cache_pages :except => [:delete] # => will cache all pages except for the delete page for a controller

[Source]

    # File lib/mack-caching/page_caching/controller_extensions.rb, line 13
13:       def cache_pages(options = {})
14:         before_filter :set_page_cache_header, options
15:       end

[Validate]