Class: Admin::CachesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Admin::CachesController
- Defined in:
- app/controllers/admin/caches_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
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 |