Changeset 1674

Show
Ignore:
Timestamp:
03/15/08 09:30:50 (2 months ago)
Author:
pdcawley
Message:

Fixed the caching declarations for the grouping controller.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/grouping_controller.rb

    r1588 r1674  
    44  cache_sweeper :blog_sweeper 
    55 
    6   caches_action_with_params :index, :show 
     6  cached_pages = [:index, :show] 
     7 
     8  if Blog.default && Blog.default.cache_option == "caches_action_with_params" 
     9    caches_action_with_params *cached_pages 
     10  else 
     11    caches_page *cached_pages 
     12  end 
    713 
    814  class << self