mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
082aedc0b3
commit
7889668b6e
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue