1

本质上,我在 Heroku 上托管了一个 CakePHP 站点,但是每当我执行 Git 推送更新站点时,我的所有用户都会被注销。

我假设它与/tmp每次在 Heroku 上进行更新时都会刷新的文件夹有关。我该如何解决这个问题?

4

1 回答 1

2

You should probably change the cache provider to either database or cache (memcached) as described in the docs: http://book.cakephp.org/2.0/en/development/sessions.html#built-in-session-handlers-configuration

This will also have the advantage of working if you scale to multiple dynos (which won't share a /tmp folder)

于 2013-03-04T05:40:49.367 回答