我有一个抛出错误的 CakePHP 站点(一开始很好,并且已经在线几个月了——不确定问题是什么时候开始的)。
我越来越:
警告(512):_cake_core_ 缓存无法将“cake_dev_en-us”写入 Apc 缓存 [CORE/Cake/Cache/Cache.php,第 310 行] 警告(512):_cake_core_ 缓存无法将“cake_en-us”写入Apc 缓存 [CORE/Cake/Cache/Cache.php,第 310 行] 警告 (512):_cake_model_ 缓存无法将“default_projects”写入 Apc 缓存
[CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_projects' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_clients' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_clients' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_projectpages' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_projectpages' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_settings' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
Warning (512): _cake_model_ cache was unable to write 'default_settings' to Apc cache [CORE/Cake/Cache/Cache.php, line 310]
我已确保 tmp 目录是可写的(已将其以及所有包含的文件夹和文件设置为 0777;还检查了它是否正确更新,并且确实如此);我还通过将调试级别设置为 0 来关闭 core.php 中的错误报告。
大多数站点都很好,但是这个特定的页面是由 AJAX 引入的,我不知道这是否有什么不同。
我已经通过在 cake-error 上设置“display:none”来修补它,但我需要了解为什么会发生这种情况。首先,是什么导致了错误?其次,为什么忽略核心设置?