Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.5.11. Configure LiteSpeed Cache in Drupal 8
- Change the web server for the required site to OpenLiteSpeed.
- Add the following block of directives to the .htaccess file:
<IfModule LiteSpeed> CacheLookup on </IfModule> - Open the module page on GitHub and copy the link for "Source code (tar.gz)" (not zip):

- Install the module:

- Go to
http://your_site.com/admin/modules/install. - In the "Install from URL" field, paste the copied link to the module archive.
- Click "Install".
- Enable the module:

- Go to the address
http://your_site.com/admin/modules. - In the list of extensions, find the LiteSpeed Cache module.
- Mark the module with a checkmark.
- Click "Install".
- Configure the module:

- Go to the address
http://your_site.com/admin/config/development/lscache. - Set the value of the parameter "ESI" to "Off".
- Click "Save configuration".
- Check the site operation.
After performing the described actions, caching will start automatically.
Module settings description
The LiteSpeed Cache module settings are available at http://your_site.com/admin/config/development/lscache.
Block "CLEAR CACHE!":
- "Clear this site" — the button for clearing the LiteSpeed cache of the current site on this virtual host. It can be useful when multiple sites are hosted on a single host.
- "Clear all" — the button for clearing the LiteSpeed cache for all sites hosted on the current virtual host.
Block "LSCACHE SETTINGS!":
- "Cache status" — enabling/disabling LiteSpeed cache.
- "Debugging" — enabling/disabling the debugging mode. When enabled, the LiteSpeed cache will issue additional headers that may be useful during the development or deployment of the site.
- "ESI" — enabling/disabling ESI support. It should be disabled because OpenLiteSpeed is used on the hosting.
- "Maximum age" — the time pages are stored in the public LiteSpeed cache.
- "Max age private" — the storage duration of pages in the LiteSpeed private cache.