0
在生产我有缓存的配置/环境/ production.rb关闭:Rails的缓存生产
config.action_controller.perform_caching = false
但是内容被缓存,我似乎无法将其清除。该日志只是说明:
Started GET "/1234" for 12.34.56.78 at 2013-06-21 23:36:41 +0100
Processing by MyController#index as HTML
Parameters: {"product_id"=>"1234"}
Rendered my_app/index.html.erb within layouts/application (0.0ms)
Completed 200 OK in 259ms (Views: 2.1ms | ActiveRecord: 254.7ms)
什么给和如何清除缓存?
你在做页面缓存吗?如果是这样,我认为你需要删除/ public中的缓存文件。 – kengo
公开的唯一文件是:404.html 422.html 500.html资产favicon.ico robots.txt系统 – Snowcrash
为什么你认为缓存正在发生?正如@ cpuguy83提到的那样,这里没有缓存。是否因为日志文件输出中的行数较少? Production Rails将日志级别配置为'Info'而不是'Debug',因此所有logging.debug行都不会输出。 –