【发布时间】:2013-04-15 15:14:03
【问题描述】:
我有一个带有 CakePHP 应用程序的健康、低流量的登台服务器。我在 localhost 上运行 Memcached,所有 Cake 缓存都使用 Memcache 作为缓存引擎。
每隔一两个小时(比如每 1-2 周),我会看到如下错误:
Warning (512): _cake_model_ cache was unable to write 'default_read_users' to Memcache cache [CORE/Cake/Cache/Cache.php, line 309]
Warning (512): _cake_core_ cache was unable to write 'file_map' to Memcache cache [CORE/Cake/Cache/Cache.php, line 309]
Warning (512): _cake_core_ cache was unable to write 'method_cache' to Memcache cache [CORE/Cake/Cache/Cache.php, line 309]
这表明即使是核心 Cake 缓存也无法写入 Memcache 存储。
我将重新启动服务器上的 Memcache 守护程序,等待几分钟,然后重新加载页面,但错误消息仍然存在。
服务器上的 Vitals 看起来不错。
这是什么原因造成的?
【问题讨论】:
-
这里有同样的问题。有人有解决方案吗?只发生在 Memcached 上...
-
对我来说,如果我在缓存引擎中定义了很多组,就会发生这种情况。
标签: php cakephp memcached cakephp-2.0 lamp