cache_controller.rb
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RB 代码 · 共 28 行
RB
28 行
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' endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?