mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
parent
dc7c31e7ec
commit
9b94133f0d
1 changed files with 11 additions and 1 deletions
|
@ -150,7 +150,17 @@ class CacheHelper extends AppHelper {
|
||||||
|
|
||||||
if ($cacheTime != '' && $cacheTime > 0) {
|
if ($cacheTime != '' && $cacheTime > 0) {
|
||||||
$cached = $this->_parseOutput($out);
|
$cached = $this->_parseOutput($out);
|
||||||
|
try {
|
||||||
$this->_writeFile($cached, $cacheTime, $useCallbacks);
|
$this->_writeFile($cached, $cacheTime, $useCallbacks);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$message = __d(
|
||||||
|
'cake_dev',
|
||||||
|
'Unable to write view cache file: "%s" for "%s"',
|
||||||
|
$e->getMessage(),
|
||||||
|
$this->request->here
|
||||||
|
);
|
||||||
|
$this->log($message, 'error');
|
||||||
|
}
|
||||||
$out = $this->_stripTags($out);
|
$out = $this->_stripTags($out);
|
||||||
}
|
}
|
||||||
return $out;
|
return $out;
|
||||||
|
|
Loading…
Reference in a new issue