Class: Dalli::Ui::CacheController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Dalli::Ui::CacheController
- Defined in:
- app/controllers/dalli/ui/cache_controller.rb
Instance Method Summary collapse
Instance Method Details
#flush ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/dalli/ui/cache_controller.rb', line 12 def flush Rails.logger.info "Dalli::Ui Flushed Dalli cache store" Rails.cache.dalli.flush flash[:dalli_ui_notice] = "Flushed cache store" redirect_to dalli_ui_path end |
#index ⇒ Object
8 9 10 |
# File 'app/controllers/dalli/ui/cache_controller.rb', line 8 def index @stats = wrap_presenters Rails.cache.dalli.stats end |