Sha256: bc05944f321c9956b16e078190c45a8eb1a01348f802bd42ba19bba9fc115e92

Contents?: true

Size: 386 Bytes

Versions: 6

Compression:

Stored size: 386 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.flush_cache
    flash[:notice] = "Page Cache Flushed"
    redirect_to :action => "show"
  end
  
  private
    def set_menu_section
      @menu_section = 'caching'
    end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browsercms-3.4.2 app/controllers/cms/cache_controller.rb
browsercms-3.4.2.rc1 app/controllers/cms/cache_controller.rb
browsercms-3.4.1 app/controllers/cms/cache_controller.rb
browsercms-3.4.0 app/controllers/cms/cache_controller.rb
browsercms-3.4.0.rc2 app/controllers/cms/cache_controller.rb
browsercms-3.4.0.rc1 app/controllers/cms/cache_controller.rb