How to Set Up PrestaShop With Litespeed Cache at Hostinger

Optimizing your Prestashop website

Updated 2 weeks ago

After installing PrestaShop using the Auto Installer, follow these steps to set up LiteSpeed Cache:

Step 1 – Install LiteSpeed Cache

  • Download the LiteSpeed cache module and save it on your computer

  • Navigate to Modules → Module Catalog, click on Upload a module and select the zip file on your computer:

PrestaShop Modules catalog page with the Upload a module button highlighted
  • Once installation is complete, activate it by navigating to Configure and setting Enable LiteSpeed Cache to Yes:

PrestaShop LiteSpeed Cache enabled toggle in General settings

Step 2 – Set Up LiteSpeed Cache

Navigate to the Advanced Parameters → Performance tab in your PrestaShop administration area and check for the following settings, leaving the current values in any other sections. Remember to save the changes:

  • Smarty – Never recompile template files and set Cache to No:

PrestaShop Smarty settings with template compilation set to never recompile and cache off
  • CCC (Combine, Compress and Cache) – Enable all available options:

PrestaShop CCC settings with Smart cache for CSS, JavaScript, and Apache optimization toggles set to Yes
  • Caching – Set to No:

Caching settings with Use cache toggle set to No and Save button visible

Optional – Set up a Content Delivery Network

After your caching is sorted out, you can think about enabling a CDN. This way, your PrestaShop website will have stored copies in the CDN server network around the world, which will make it load even faster.

If you also want to take advantage of the crawling capabilities of LiteSpeed Cache to refresh the pages that may have expired in the cache, you can use the LSCache Crawler Script. Learn more: Enable LS Cache Crawler engine