Sha256: 38953ba5a52f86c934831eb4fa6f14908ad55fde1c99f9d0bc6837396522d870
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 Bytes
Contents
class Admin::CacheController < Admin::BaseController def index list render_action 'list' end def list @page_cache_size = PageCache.count end def sweep PageCache.sweep_all expire_fragment(/.*/) flash[:notice] = 'Cache was cleared' redirect_to :controller => '/admin/general' end def sweep_html expire_fragment(/^contents_html.*/) flash[:notice] = 'HTML was cleared' redirect_to :controller => '/admin/general' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typo-4.1.1 | app/controllers/admin/cache_controller.rb |
typo-4.1 | app/controllers/admin/cache_controller.rb |