Class: CacheSweeperController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/cache_sweeper_controller.rb

Instance Method Summary collapse

Instance Method Details

#cleanObject



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