我无法弄清楚这个......这意味着它必须是一个简单的,对吧?!
问题: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";
....
}
app/tmp/cache/* 上的权限是 0777。世界可写。
但仍然没有文件被写入缓存......我错过了什么?
DJC