2012-10-09 40 views
0

我有这样的控制器:启用ActionController的缓存在开发和测试环境中无法正常工作

class PagesController < ApplicationController 
    caches_page :index 

    def index 
    end 
end 

action_controller.perform_caching每个环境。

在生产时,一切都按预期运行,缓存页面存储在public/cache/index.html中,但对于开发和测试,index.html的缓存版本正在每次请求时重新生成。

我用Rails 3.1.8

回答

相关问题