【发布时间】:2016-03-20 12:34:26
【问题描述】:
我正在运行一个 Rails 4 应用程序,我在 Heroku 上的生产日志中看到了这一点。我经常看到它,据报道有些用户被注销了,我在日志中看不到任何表明它发生的原因。我没有看到任何来自 dalli 的无法保存的信息。对于大多数用户来说,它工作得很好。有关如何追捕此问题的任何提示?
生产日志中的错误消息
Warning! ActionDispatch::Session::CacheStore failed to save session. Content dropped.
我的生产配置
config.cache_store = :dalli_store,
(ENV["MEMCACHIER_SERVERS"] || "").split(","),
{:username => ENV["MEMCACHIER_USERNAME"],
:password => ENV["MEMCACHIER_PASSWORD"],
:failover => true,
:socket_timeout => 1.5,
:socket_failure_delay => 0.2
}
config.session_store = :mem_cache_store
【问题讨论】:
标签: ruby-on-rails session heroku memcached