Class: Admin::CachesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/admin/caches_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



5
6
7
8
9
# File 'app/controllers/admin/caches_controller.rb', line 5

def destroy
  Rails.logger.warn("[CACHE CLEAR] - Cleaning entire cache manually by #{current_admin} request")
  Rails.cache.clear
  redirect_back(fallback_location: admin_dashboard_path)
end