From 7889668b6e3e6c349628f93f1a9f2be1f04c4446 Mon Sep 17 00:00:00 2001 From: gwoo Date: Fri, 23 May 2008 18:52:49 +0000 Subject: [PATCH] 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 --- cake/libs/view/helpers/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/cache.php b/cake/libs/view/helpers/cache.php index 3669c95ee..682ee2436 100644 --- a/cake/libs/view/helpers/cache.php +++ b/cake/libs/view/helpers/cache.php @@ -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)) {