jjzjj

php - CakePHP 2.0 应用程序 : Intermittently unable to write to Memcache cache error messages

coder 2024-04-20 原文

我有一个健康、低流量的暂存服务器和一个 CakePHP 应用程序。我在本地主机上运行 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 看起来不错。

这可能是什么原因造成的?

最佳答案

会不会是 CakeShell 是从具有比正常 php 执行 (www-data) 更高权限的用户(即 root)访问的,所以这些缓存文件以后不能从正常进程访问或更改?

关于php - CakePHP 2.0 应用程序 : Intermittently unable to write to Memcache cache error messages,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16151850/

有关php - CakePHP 2.0 应用程序 : Intermittently unable to write to Memcache cache error messages的更多相关文章

随机推荐