This is an old revision of the document!


Installing & Enabling The LSCache Plugin For PrestaShop

  • LiteSpeed Web Server Enterprise Edition 5.2.1 Build 7 or higher.
  • LSCache Module. (Included with all current licenses and the 2-CPU or higher legacy licenses. Can be purchased as an add-on for VPS, Ultra VPS, and 1-CPU licenses.)
  1. Configure server- and/or virtual-host-level cache root and cache policy by selecting your setup in the Web Server Configuration section of the LiteSpeed Web Cache Common Installation Guide.
  2. Disable any other page caches as these will interfere with LSCPS.
  3. Log in to your PrestaShop Admin
  4. Set Advanced Parameters > Debug mode > Disable all overrides to NO. This is required to ensure proper functioning of the ESI hole-punching feature.
  5. Navigate to Modules > Modules & Services, and click on Upload a Module.
  6. Select the LSCPS zip file.
  7. Enable the module by navigating to LiteSpeed Cache > Settings and setting Enable LiteSpeed Cache to Yes.

Fixing an Error

If you see the following error message, Directory /home/example/example.com/app/logs is not writable, you can fix it like so:

touch /home/example/example.com/app/logs
chown example:example /home/example/example.com/app/logs

Then, upload and install the module again.

When you enable or disable LiteSpeed Cache from the plugin, .htaccess file should be automatically updated. If the update failed, most time due to file permission, you can update it manually.

At the top of your .htaccess file, located in the document root of your PrestaShop installation, add the following:

# LITESPEED_CACHE_START Do not remove this comment line, LiteSpeedCache plugin will automatically update this block
<IfModule LiteSpeed>
CacheLookup on
</IfModule>
# LITESPEED_CACHE_END
  • Admin
  • Last modified: 2019/05/16 16:02
  • by Kacey Schroeder