Class: Admin::StaticCacheController

Inherits:
AdminCartoonistController
  • Object
show all
Defined in:
app/controllers/admin/static_cache_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



8
9
10
11
# File 'app/controllers/admin/static_cache_controller.rb', line 8

def destroy
  StaticCache.find(params[:id]).expire!
  redirect_to "/admin/static_cache"
end

#expire_allObject



13
14
15
16
# File 'app/controllers/admin/static_cache_controller.rb', line 13

def expire_all
  StaticCache.expire_all!
  redirect_to "/admin/static_cache"
end

#indexObject



4
5
6
# File 'app/controllers/admin/static_cache_controller.rb', line 4

def index
  @caches = StaticCache.all
end