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