Buffer all output for s-s-s-speeeeeed!

This commit is contained in:
Brian Buller 2012-06-12 18:30:24 -05:00
parent a080618ba0
commit e99bef99da
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,8 @@ foreach($global_libraries as $alib) {
foreach($global_models as $amod) {
require_once('models/'.$amod.'_model.php');
}
// Buffer all output for speed!
ob_start();
$uri = new Uri_library($_SERVER['REQUEST_URI']);
$uri_array = $uri->getFullArray();
@ -43,5 +45,7 @@ if($c_func!==false && method_exists($c_class, $c_func)) {
}
}
// Flush the buffer
ob_end_flush();
?>