Thread: feedback needed
View Single Post
Old 20-02-06, 07:27 PM   #2
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default

Save a tad of bandwidth by removing the HTML comment from overall_footer.tpl

Cache the subBlack.css file by renaming the file subBlackCSS.php and adding the code below to the top of the file. That way it caches the CSS on the client machine for 1h (60 * 60) before getting it again. I do the same with the JS files. Remember to alter the overall_header.tpl & simple_header.tpl to point to the new files. It will also GZIP the CSS file to the client which makes it way smaller.
Code:
<?php 
ob_start ("ob_gzhandler");
header("Content-type: text/css; charset: ISO-8859-1");
header("Cache-Control: must-revalidate");
$offset = 60 * 60 ;
$ExpStr = "Expires: " . 
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?>
What version of PHP & MySQL do you run the forums on?

If you have control over the php.ini files it may be an idea to install eAccelerator as it caches the php code and makes it much much faster. Also look at eXtreme Styles mod as it caches all the phpBB templates and makes it faster still.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote