2.13.2.19. Setting up LiteSpeed Cache in Joomla!

To set up LiteSpeed Cache in Joomla !, do the following:

  1. Change web server for the desired site on OpenLiteSpeed.
  2. Edit the file .htaccess, which is located in the root directory of the site, adding at the beginning the code:
    <IfModule LiteSpeed>
      CacheLookup on
    </IfModule>

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

    <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! with official site... To download, a page on GitHub will open, where you will need to click "Download":
  4. Go to section "Extensions → Extension manager → Installing":
  5. Drag and drop or select the downloaded plugin archive file:
  6. Go to section "System → General settings → LiteSpeed Cache", set the switch opposite "Enable LiteSpeed Cache" into position "Enabled" and save the settings:
  7. Set the rest of the plugin settings to suitable caching for the site and save all changes.
Content