Class: Dalli::Ui::CacheController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dalli/ui/cache_controller.rb

Instance Method Summary collapse

Instance Method Details

#flushObject


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

#indexObject


8
9
10
# File 'app/controllers/dalli/ui/cache_controller.rb', line 8

def index
  @stats = wrap_presenters Rails.cache.dalli.stats
end