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";    

....
}

app/tmp/cache/* 上的权限是 0777。世界可写。

但仍然没有文件被写入缓存......我错过了什么?

DJC

4

1 回答 1

4
Configure::write('Cache.disable', true);

你不知道为什么缓存没有被写入......?

于 2012-12-03T20:16:38.220 回答