tre*_*pps 0 caching cakephp-2.0
我无法弄清楚这个问题......这意味着它一定是一个简单的问题,对吧?!
问题:Cake 未将文件写入文件缓存。
配置:
//app/Config/core.php
Configure::write('debug', 0);
Configure::write('Cache.disable', true);
Configure::write('Cache.check', true);
//app/Config/bootstrap.php
Cache::config('default', array('engine' => 'File'));
//app/Controller/CategoriesController.php, 'view' method:
public function view($id = null) {
$this->helpers[] = 'Format';
$this->helpers[] = 'Cache';
$this->cacheAction = "3600";
....
}
Run Code Online (Sandbox Code Playgroud)
app/tmp/cache/* 上的权限为 0777. world 可写。
但仍然没有将文件写入缓存......我错过了什么?
DJC
Configure::write('Cache.disable', true);
Run Code Online (Sandbox Code Playgroud)
你不知道为什么缓存没有被写入......?