【问题标题】:Cakephp _cake_core_ cache was unable to write 'method_cache'Cakephp _cake_core_ 缓存无法写入“method_cache”
【发布时间】:2016-11-28 23:31:21
【问题描述】:

警告:警告 (512):_cake_core_ 缓存无法将“method_cache”写入 [/var/www/****/lib/Cake/Cache/Cache.php,第 323 行]中的 Apc 缓存]

Trace:
Cache::write() - CORE/Cake/Cache/Cache.php, line 323
DboSource::__destruct() - CORE/Cake/Model/Datasource/DboSource.php, line 3541
[main] - [internal], line ??

写入 /app/tmp 文件夹:

drwxrwsr-x  7 apache apache 4096 Sep 27  2014 tmp

子文件夹:

drwxrwsr-x 5 apache apache 4096 Jun  2 16:51 cache
drwxrwsr-x 3 apache apache 4096 Jul 21 13:40 logs
drwxrwsr-x 3 apache apache 4096 Jun 27  2014 sessions
drwxrwsr-x 3 apache apache 4096 Jun 27  2014 tests

有人知道这个警告以及如何删除它吗?

【问题讨论】:

    标签: php cakephp caching logging


    【解决方案1】:

    你应该让你的子目录也可写

    • 应用程序/tmp/缓存
    • app/tmp/cache/persistent
    • app/tmp/cache/models

    【讨论】:

      猜你喜欢
      • 2013-08-15
      • 2011-11-26
      • 1970-01-01
      • 2014-07-08
      • 2014-08-03
      • 1970-01-01
      • 1970-01-01
      • 2015-11-24
      • 2016-09-28
      相关资源
      最近更新 更多