Skip to content
Permalink
Browse files

Applying optimization from 'wangbo' to View::renderCache(). Fixes #26

  • Loading branch information...
markstory committed Sep 15, 2009
1 parent f1194a4 commit 3ef53aa1592a8f67fbfdf25ea3f0ad3a6b467e25
Showing with 2 additions and 1 deletion.
  1. +2 −1 cake/libs/view/view.php
@@ -542,7 +542,8 @@ function renderCache($filename, $timeStart) {
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;
}
}

0 comments on commit 3ef53aa

Please sign in to comment.
You can’t perform that action at this time.