Class: CacheSweeperController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CacheSweeperController
- Defined in:
- app/controllers/cache_sweeper_controller.rb
Instance Method Summary collapse
Instance Method Details
#clean ⇒ Object
2 3 4 5 6 7 |
# File 'app/controllers/cache_sweeper_controller.rb', line 2 def clean logger.debug('sweeping the cache') Rails.cache.clear flash.notice = 'Cache cleaned' redirect_back(fallback_location: '/') end |