Steffen Buschkemper
April 21, 2013, 07:26 PM
Hi @ All
To compress the html code and optimize the loading time of the pages makes the following change
Go to folder libs -> smarty and open Smarty_Compiler.class.php
Find the follow code @ line ~ 426
$compiled_content = $template_header . $compiled_content;
Above this code paste following lines
$compiled_content = trim(preg_replace('/((?<!\?>)\n)[\s]+/m', '\1', $compiled_content));
$compiled_content = preg_replace('#<!--//.*?-->#s', '', $compiled_content);
$compiled_content = preg_replace("#>(\s+)<#s", "><", $compiled_content);
Save and Close.
Now go via ftp to Folder tmp -> compile and delete all php files.
Please do not delete the .htaccess file!
OK login to admin panel and go to Common -> Refresh.
Press all Buttons -> Recount, Rearrange, Update and Update.
Now the pages are created with compressed html code.
Thats all...
Best regards
Steffen
To compress the html code and optimize the loading time of the pages makes the following change
Go to folder libs -> smarty and open Smarty_Compiler.class.php
Find the follow code @ line ~ 426
$compiled_content = $template_header . $compiled_content;
Above this code paste following lines
$compiled_content = trim(preg_replace('/((?<!\?>)\n)[\s]+/m', '\1', $compiled_content));
$compiled_content = preg_replace('#<!--//.*?-->#s', '', $compiled_content);
$compiled_content = preg_replace("#>(\s+)<#s", "><", $compiled_content);
Save and Close.
Now go via ftp to Folder tmp -> compile and delete all php files.
Please do not delete the .htaccess file!
OK login to admin panel and go to Common -> Refresh.
Press all Buttons -> Recount, Rearrange, Update and Update.
Now the pages are created with compressed html code.
Thats all...
Best regards
Steffen