Class: Admin::CachePurgeController

Inherits:
ForestController
  • Object
show all
Defined in:
app/controllers/admin/cache_purge_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
8
9
10
# File 'app/controllers/admin/cache_purge_controller.rb', line 2

def index
  authorize :dashboard, :index?

  logger.info "[Forest] Performing user-issued cache clear"

  Rails.cache.clear

  redirect_to params.delete(:return_to) || admin_path, notice: "Cache has been cleared."
end