disable callbacks in view cache by default

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7034 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-05-23 18:52:49 +00:00
parent 082aedc0b3
commit 7889668b6e

View file

@ -115,7 +115,7 @@ class CacheHelper extends AppHelper {
$options = $this->cacheAction;
if (isset($this->cacheAction[$index])) {
if (is_array($this->cacheAction[$index])) {
$options = array_merge(array('duration'=> 0, 'callbacks' => true), $this->cacheAction[$index]);
$options = array_merge(array('duration'=> 0, 'callbacks' => false), $this->cacheAction[$index]);
} else {
$cacheTime = $this->cacheAction[$index];
}
@ -214,7 +214,7 @@ class CacheHelper extends AppHelper {
* @return cached view
* @access private
*/
function __writeFile($content, $timestamp, $useCallbacks = true) {
function __writeFile($content, $timestamp, $useCallbacks = false) {
$now = time();
if (is_numeric($timestamp)) {