Caching & Caching Fragments
Caching 模块
def cache(key, options = {}, &block)
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller),
options, &block)
else
yield
end
endconfig.action_controller.perform_caching = falseCaching Fragments 模块
最后更新于