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

This commit is contained in:
mark_story 2009-09-14 23:56:50 -04:00
parent f1194a4ec9
commit 3ef53aa159

View file

@ -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;
}
}