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;
|
$options = $this->cacheAction;
|
||||||
if (isset($this->cacheAction[$index])) {
|
if (isset($this->cacheAction[$index])) {
|
||||||
if (is_array($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 {
|
} else {
|
||||||
$cacheTime = $this->cacheAction[$index];
|
$cacheTime = $this->cacheAction[$index];
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ class CacheHelper extends AppHelper {
|
||||||
* @return cached view
|
* @return cached view
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function __writeFile($content, $timestamp, $useCallbacks = true) {
|
function __writeFile($content, $timestamp, $useCallbacks = false) {
|
||||||
$now = time();
|
$now = time();
|
||||||
|
|
||||||
if (is_numeric($timestamp)) {
|
if (is_numeric($timestamp)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue