CS-Cart 4.3.1 is now available. We’ve done a solid piece of work to speed it up.
CS-Cart 4.3.1 is fast because it’s well-optimized, but the speed also depends on the server configuration.
We’ve prepared five server tweaks that will help you get the maximum speed boost from CS-Cart 4.3.1.
Use PHP 5.6
CS-Cart 4.3.1 works faster with PHP version 5.6. Update PHP on your server to 5.6 to accelerate your store.
Use the OPcache caching engine to speed up PHP scripts.
Every time the PHP interpreter runs a PHP script, it compiles the script into what’s called byte code. OPcache allows the PHP interpreter to compile the script only once and save the byte code into the memory. Every time CS-Cart calls the PHP script, the interpreter retrieves the byte code from memory. Retrieving the byte code from memory is faster than compiling the PHP script again.
CS-Cart 4.3.1 uses OPcache by default if you have it installed and enabled.
The mod_deflate module compresses web pages in CS-Cart. The smaller the page size, the faster a web server transmits page data, and the quicker a customer sees the page.
Ask you hosting provider if the server has mod_deflate.
- To use the Imagick library, complete these steps:
- Install ImageMagick software suite and imagick library.
- Clear your thumbnails cache.
- Change the library name in the config.local.php file:
Enable APCu and Redis
APCu is a caching technology that stores (i.e., caches) data generated by CS-Cart. Once the data has been cached, CS-Cart retrieves it from the cache when needed. Retrieving data from the cache is faster than generating it again.
Redis is another data caching technology. It caches data into RAM, so that it’s quickly accessed. We recommend that you use Redis for PHP sessions.
Check the CS-Cart Forum for more tips on configuring your server.
We hope these tweaks will help you get the maximum speed out of CS-Cart 4.3.1. You are welcome to ask any questions about server configurations here or on the forum.