Cache

Hello,



Yes, the latest CS-Cart version can merge all the CSS files to a large one, but Javascript files are not merged yet.



In order to enable merging CSS files, please replace this part of the code:



// Tweaks
$config["tweaks"]["join_css"] = false;




with this one:



// Tweaks
$config["tweaks"]["join_css"] = true;




in the “config.local.php” file located in the root directory of your CS-Cart installation.



As regards the Javascript files, the current CS-Cart version can reduce their size only by removing unnecessary spaces, line breaks, etc. from the code. The following option in the same “config.local.php” file is responsible for it:



$config["tweaks"]["js_compression"] = false;




So if you want to enable the Javascript compression, you need to change its value to 'true':



$config["tweaks"]["js_compression"] = true;






Anastasiya Kozlova

CS-Cart Support Team