* enabled cache http headers for signatures

* disabled fullpage plugin in tinymce
This commit is contained in:
slawkens1
2017-10-11 21:25:41 +02:00
parent 42ef8487c8
commit 92028a2492
6 changed files with 152 additions and 153 deletions

View File

@@ -43,7 +43,7 @@
}
$cached = SIGNATURES_CACHE.$player->getId() . '.png';
if (file_exists($cached) and (time() < (filemtime($cached) + (60 * $config['signature_cache_time']))))
if(file_exists($cached) and (time() < (filemtime($cached) + (60 * $config['signature_cache_time']))))
{
header( 'Content-type: image/png' );
readfile( SIGNATURES_CACHE.$player->getId().'.png' );
@@ -51,4 +51,11 @@
}
require($file);
header('Content-type: image/png');
$seconds_to_cache = $config['signature_browser_cache'] * 60;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header('Expires: ' . $ts);
header('Pragma: cache');
header('Cache-Control: max-age=' . $seconds_to_cache);
readfile(SIGNATURES_CACHE . $player->getId() . '.png');
?>