Class: Cache::FlushesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/solid_stack_web/cache/flushes_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



3
4
5
6
# File 'app/controllers/solid_stack_web/cache/flushes_controller.rb', line 3

def destroy
  ::SolidCache::Entry.delete_all
  redirect_to cache_entries_path, notice: "All cache entries flushed."
end