1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Performance improvement for thumb.php

This commit is contained in:
Cameron
2016-12-19 13:49:39 -08:00
parent c0df670c7b
commit cfbd9c85fb

View File

@@ -27,6 +27,7 @@ define('e107_INIT', true);
// error_reporting(E_ALL);
error_reporting(0); // suppress all errors or image will be corrupted.
ini_set('gd.jpeg_ignore_warning', 1);
//require_once './e107_handlers/benchmark.php';
@@ -101,7 +102,8 @@ class e_thumbpage
require_once(realpath(dirname(__FILE__).'/'.$CLASS2_INCLUDE));
}
ob_clean(); // Precaution - clearout utf-8 BOM or any other garbage in e107_config.php
ob_end_clean(); // Precaution - clearout utf-8 BOM or any other garbage in e107_config.php
$tmp = $self.'/'.$HANDLERS_DIRECTORY;
@@ -292,6 +294,8 @@ class e_thumbpage
// Send required headers
//$this->sendHeaders($thumbnfo);
@readfile(e_CACHE_IMAGE.$fname);
//$bench->end()->logResult('thumb.php', $_GET['src'].' - retrieve cache');