summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2012-07-23 16:22:06 +0200
committervlakoff <vlakoff@gmail.com>2012-07-23 16:22:06 +0200
commit1288fe36214e0c8a22edec16da209081930e17c9 (patch)
tree1c455f0118963bc0b640b64115488308b1b9cfb8
parentede49ba66b127535f3430e20aac72ceed2c4611a (diff)
output->_display_cache() optimization
faster method to remove the timestamp from the content to be served
-rw-r--r--system/core/Output.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 5ec8c4bc0..2bf4e998f 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -575,7 +575,7 @@ class CI_Output {
}
// Display the cache
- $this->_display(str_replace($match[0], '', $cache));
+ $this->_display(substr($cache, strlen($match[0])));
log_message('debug', 'Cache file is current. Sending it to browser.');
return TRUE;
}