Class: Supercache::DashboardController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Supercache::DashboardController
- Defined in:
- app/controllers/supercache/dashboard_controller.rb
Instance Method Summary collapse
Instance Method Details
#flip ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/controllers/supercache/dashboard_controller.rb', line 13 def flip if cache.read(@cache) cache.delete(@cache) else cache.write(@cache, true) end redirect_to :root end |
#index ⇒ Object
8 9 10 11 |
# File 'app/controllers/supercache/dashboard_controller.rb', line 8 def index @ar_cache = cache.read(:ar_supercache) @http_cache = cache.read(:http_supercache) end |