mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Applying optimization from 'wangbo' to View::renderCache(). Fixes #26
This commit is contained in:
parent
f1194a4ec9
commit
3ef53aa159
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ class View extends Object {
|
|||
if ($this->layout === 'xml') {
|
||||
header('Content-type: text/xml');
|
||||
}
|
||||
echo str_replace('<!--cachetime:' . $match['1'] . '-->', '', $out);
|
||||
$commentLength = strlen('<!--cachetime:' . $match['1'] . '-->');
|
||||
echo substr($out, $commentLength);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue