Rails nginx + unicorn 的 unicorn error 中常有 cache get / miss

hechian · 2012年05月29日 · 最后由 hechian 回复于 2012年06月06日 · 3866 次阅读

error message 是: cache: [GET /] miss

我去 Google 後看到 stackoverflow 上有人說把 production 中 config.action_controller.perform_caching = true 設定為 false 就可以了,但是這樣不曉得在效能上是不是會有問題

想請問一下各位是怎樣配置的?

謝謝

和 perform_caching 无关,这是 rails 3.2.2 在处理日志上的一个小 bug,升级到 3.2.3 或者用这个 issue 里面的 patch:

https://github.com/rails/rails/issues/5245

但我的 Rails version 是 3.1.3 版的

If you get this from your error log, there might be two things you might look into:

  1. assets pipeline precompile

  2. cache_store is not properly set up for the environment (like staging and production)

所以有可能就是因為我在 production 模式下並沒有指定 cache_store 所以才會導致這種問題囉? 我試試看,感謝 @chentianwen

#2 楼 @hechian 那更应该升级了

#6 楼 @Rei 怕 3.1.3 更新到 3.2.3 太麻煩囉 QQ

#7 楼 @hechian 感觉差异不是太大,现在已经是 3.2.5 了。

#8 楼 @jimrokliu 我在幾分鐘前才發現到這個令人崩潰的事實 ...

需要 登录 后方可回复, 如果你还没有账号请 注册新账号