Class: Plum::Cp::StaticCacheController

Inherits:
BaseController show all
Defined in:
app/controllers/plum/cp/static_cache_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



6
7
8
9
# File 'app/controllers/plum/cp/static_cache_controller.rb', line 6

def destroy
  Plum::StaticCache.flush_site!(current_site)
  redirect_back fallback_location: cp_root_path, notice: "Page cache cleared"
end