Class: Supercache::DashboardController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/supercache/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#flipObject



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

#indexObject



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