The information in this article is specific to PrestaShop. For general information about caching on Turbo accounts, please see this article.
Enabling caching for PrestaShop version 1.7 or newer
To enable caching for PrestaShop version 1.7 (or a newer version), use the LSCache Module for PrestaShop. To do this, follow these steps:- Go to https://www.litespeedtech.com/products/cache-plugins/prestashop-acceleration/download.
- Download LSCache Module 1.4.1 .
- Log in to PrestaShop as the administrator.
- In the left sidebar, under IMPROVE, click Modules, and then click Module Manager.
- Click Upload a module.
- Click Browse, and then select the .zip file you downloaded in step 2. PrestaShop installs the module.
- Click Configure.
- In the General v1.4.1 section, click Enable LiteSpeed Cache.
-
Click Save. Caching is now enabled for PrestaShop.
👍 Tip To verify that caching is working correctly on your account, you can examine the raw HTTP headers sent between the browser and web server. (To do this, use a browser plugin that displays the raw headers such as Live HTTP headers for Mozilla Firefox, or the Developer Tools feature in Google Chrome.) When content is served from the cache, the server adds the following line to the HTTP response header:
If you do not see this line in the HTTP response header from the server, then the content was not served from the cache.
Enabling caching for PrestaShop version 1.6 or older
To enable caching for PrestaShop version 1.6 (or an older version), follow these steps:- Log in to PrestaShop as the administrator.
- On the left-side pane, click Modules and Services.
-
Under MODULES LIST, in the search text box, type
a2. - The A2 Hosting with TurboCache module appears. If the module is not installed:
-
Click Install.
📘 Note If you receive a message about module verification, click Proceed with the installation .
👍 Tip
- If you install PrestaShop using Softaculous, the A2 Hosting with TurboCache module is automatically installed and enabled.
- After the TurboCache module is installed and enabled, you do not need to do any additional module configuration.
- In the directory where you installed PrestaShop, open the .htaccess file in a text editor. You can use one of the text editors in cPanel, or you can log in to your account using SSH and use a command-line editor.
If the .htaccess file does not exist, create it.
- Copy the following text and paste it at the top of the .htaccess file:
- Save your changes to the .htaccess file. Caching is now enabled for PrestaShop.