This is an old revision of the document!


LiteSpeed Cache for Joomla

The LiteSpeed Cache plugin is a high-performance cache component for Joomla sites running on a LiteSpeed web server.

The LiteSpeed Cache extension is released under the GNU General Public Licence (GPL).

See our website for more information.

This version of LiteSpeed Cache requires Joomla 3.x or later and LiteSpeed Web Server 5.2.3 or later.

Before installing and activating lscjoomla, Deactivate any other full-page cache modules (such as “System - Page Cache”).

Step 1. Cache lookup

Modify the .htaccess file in the Joomla site directory, adding the following directives:

<IfModule LiteSpeed>
    CacheLookup on
</IfModule>

If your Joomla site has a separate mobile view, please add the following directives:

<IfModule LiteSpeed>
    RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] RewriteRule .* - [E=Cache-Control:vary=ismobile]
</IfModule>

Step 2. Install plugin

Administrator menu: Extensions → Manage → Install

Download com_lscache and lscache_plugin, and go to Upload Package File to install the zip file.

Step 3. Enable the plugin

Enable the LiteSpeed Cache Plugin by using the Administrator menu: Extensions > Plugins.

If you want to configure the plugin further, please visit Administrator menu: Components > LitespeedCache.

How to Verify

Use browser developer tool, check response header and you should see X-litespeed-Cache-cache: hit in it.

How to Disable

Simply disabled from Administrator menu: Extensions > Plugins.

  • Admin
  • Last modified: 2018/03/09 20:47
  • by Lisa Clarke