Sha256: d84593fe20406ce65e80790ab9b5b28b7cdbf05b1d9e994352df3ba5c4f22e1b
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
class Admin::CacheController < Admin::BaseController def index list render :action => 'list' end def list @page_cache_size = -1 end def sweep PageCache.sweep_all expire_fragment(/.*/) flash[:notice] = _('Cache was cleared') redirect_to :controller => '/admin/general' end def sweep_html PageCache.sweep_all 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-5.0.1 | app/controllers/admin/cache_controller.rb |
typo-5.0 | app/controllers/admin/cache_controller.rb |