2.14.2.19. Configure LiteSpeed Cache in Joomla!

  1. Change the web server for the required site to OpenLiteSpeed.
  2. Edit the .htaccess file located in the root directory of the site by adding the following code at the beginning:
    <IfModule LiteSpeed>
      CacheLookup on
    </IfModule>

    If the site has mobile display settings, you also need to add the following directives to the .htaccess file:

    <IfModule LiteSpeed>
      ## Uncomment the following directives if you has a separate mobile view
      RewriteEngine On
      RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC]
      RewriteRule .* - [E=Cache-Control:vary=ismobile]
      RewriteCond %{REQUEST_URI} enquiry [NC]
      RewriteRule .* - [E=Cache-Control:no-cache]
    </IfModule>
  3. Download the extension for Joomla! from the official site. To download, a page will open on GitHub, where you will need to click "Download":
  4. Go to "Extensions → Extension manager → Install":
  5. Drag and drop or select the archive file of the downloaded plugin:
  6. Go to "System → General settings → LiteSpeed Cache", switch the "Enable LiteSpeed Cache" toggle to "On", and save the settings:
  7. Set the remaining plugin settings for caching that is suitable for the site and save all changes.
Content