|
|
@@ -150,7 +150,17 @@ class CacheHelper extends AppHelper {
|
|
|
|
|
|
if ($cacheTime != '' && $cacheTime > 0) {
|
|
|
$cached = $this->_parseOutput($out);
|
|
|
- $this->_writeFile($cached, $cacheTime, $useCallbacks);
|
|
|
+ try {
|
|
|
+ $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);
|
|
|
}
|
|
|
return $out;
|