CakePHP:无法从2.8.4中的自定义缓存中读取?

CakePHP:无法从2.8.4中的自定义缓存中读取?,cakephp,caching,cakephp-2.8,Cakephp,Caching,Cakephp 2.8,这非常简单,但我无法确定为什么它不能像烹饪书上所说的那样工作。运行以下操作时,我得到的结果为空: Cache::write('req_quals', $value, 'permacache'); Cache::read('req_quals', 'permacache'); 配置如下所示: Cache::config('permacache',array('engine'=>'File','path'=>Cache.permacache.DS',duration'=>'+9999天)) 这本

这非常简单,但我无法确定为什么它不能像烹饪书上所说的那样工作。运行以下操作时,我得到的结果为空:

Cache::write('req_quals', $value, 'permacache');
Cache::read('req_quals', 'permacache');
配置如下所示:

Cache::config('permacache',array('engine'=>'File','path'=>Cache.permacache.DS',duration'=>'+9999天))

  • 这本书很管用。我之所以知道这一点,是因为我正在直接查看tmp/cache/permacache文件夹,我看到了包含其内容的文件
  • 如果我从两行中删除“permacache”,我可以毫无问题地写入/读取此值

我是否遗漏了一些明显的东西?

当Cake计算持续时间时,+9999天返回负持续时间。你应该避免成为一个很酷的人,只需使用
+999天
作为文档

当Cake计算持续时间时,+9999天返回负持续时间。你应该避免成为一个很酷的人,只需使用
+999天
作为文档