Class: Admin::CachePurgeController
- Inherits:
-
ForestController
- Object
- ForestController
- Admin::CachePurgeController
- Defined in:
- app/controllers/admin/cache_purge_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'app/controllers/admin/cache_purge_controller.rb', line 2 def index :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 |