Permalink
Browse files

Re-use existing string instead of making another one.

  • Loading branch information...
1 parent 1ebb2ed commit ca10c49e2158dba1a47ff4d9a299927c48787adc @markstory markstory committed Mar 19, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Cake/View/View.php
@@ -566,8 +566,7 @@ public function renderCache($filename, $timeStart) {
if ($this->layout === 'xml') {
header('Content-type: text/xml');
}
- $commentLength = strlen('<!--cachetime:' . $match['1'] . '-->');
- return substr($out, $commentLength);
+ return substr($out, strlen($match[0]));
}
}
}

0 comments on commit ca10c49

Please sign in to comment.