Skip to content
This repository
Browse code

Re-use existing string instead of making another one.

  • Loading branch information...
commit ca10c49e2158dba1a47ff4d9a299927c48787adc 1 parent 1ebb2ed
Mark Story authored March 18, 2013

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  lib/Cake/View/View.php
3  lib/Cake/View/View.php
@@ -566,8 +566,7 @@ public function renderCache($filename, $timeStart) {
566 566
 				if ($this->layout === 'xml') {
567 567
 					header('Content-type: text/xml');
568 568
 				}
569  
-				$commentLength = strlen('<!--cachetime:' . $match['1'] . '-->');
570  
-				return substr($out, $commentLength);
  569
+				return substr($out, strlen($match[0]));
571 570
 			}
572 571
 		}
573 572
 	}

0 notes on commit ca10c49

Please sign in to comment.
Something went wrong with that request. Please try again.