Sha256: c778aaaf6ec867771d788c19ca1e3a63af40aa7d2fd8cfb441b1d74704f67ac8

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

module Cms
class CacheController < Cms::BaseController
  layout 'cms/administration'
  
  check_permissions :administrate  
  before_filter :set_menu_section

  def show
    
  end
  
  def destroy
    Cms::Cache.flush
    flash[:notice] = "Page Cache Flushed"
    redirect_to :action => "show"
  end
  
  private
    def set_menu_section
      @menu_section = 'caching'
    end

end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/controllers/cms/cache_controller.rb
browsercms-3.5.6 app/controllers/cms/cache_controller.rb
browsercms-3.5.5 app/controllers/cms/cache_controller.rb
browsercms-3.5.4 app/controllers/cms/cache_controller.rb
browsercms-3.5.3 app/controllers/cms/cache_controller.rb
browsercms-3.5.2 app/controllers/cms/cache_controller.rb
browsercms-3.5.1 app/controllers/cms/cache_controller.rb
browsercms-3.5.0 app/controllers/cms/cache_controller.rb
browsercms-3.5.0.rc3 app/controllers/cms/cache_controller.rb
browsercms-3.5.0.rc2 app/controllers/cms/cache_controller.rb
browsercms-3.5.0.rc1 app/controllers/cms/cache_controller.rb