We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.13.5.9. Setting up LiteSpeed Cache in Drupal 8

To set up LiteSpeed Cache in Drupal 8, do the following:

  1. Change web server for the desired site on OpenLiteSpeed.
  2. Add to file .htaccess such a block of directives:
    <IfModule LiteSpeed>
      CacheLookup on
    </IfModule>
  3. Openup module page on github and copy the link “Source code (tar.gz)"(Not zip):
  4. Install the module:
    1. Go to address http://your_website.com/admin/modules/install.
    2. In field "Install with URL-addresses»Paste the copied link to the archive with the module.
    3. Click "Install».
  5. Enable the module:
    1. Go to address http://your_website.com/admin/modules.
    2. In the list of extensions find the module LiteSpeed Cache.
    3. Tick the module.
    4. Click "Install».
  6. Configure the module:
    1. Go to address http://your_site.com/admin/config/development/lscache.
    2. The value of the parameter "ESI"Set to"Off».
    3. Click "Save configuration».
  7. Check the site is working.

After completing the described actions, caching will work automatically.

LiteSpeed Cache module settings are available at http://your_site.com/admin/config/development/lscache.

Block "CLEAR CACHE!»:

  • «Clear this site"- button for clearing the LiteSpeed cache of the current site on this virtual host. It can be useful when several sites are hosted on the same host.
  • «Clear all"- button to clear the LiteSpeed cache for all sites hosted on the current virtual host.

Block "LSCACHE SETTINGS!»:

  • «Cache Status"- enable / disable LiteSpeed cache.
  • «Debugging"- enable / disable debug mode. When enabled, LiteSpeed cache will provide additional headers that can be useful during website development or deployment.
  • «ESI"- enable / disable ESI support. Should be disabled because the hosting uses OpenLiteSpeed.
  • «Maximum age"- time of storing pages in the public cache LiteSpeed.
  • «Max age private"- time of storing pages in the private cache LiteSpeed.