Overview
This plugin only works on the following cPanel packages:- Ultimate
- WP Professional
Installation
- Download the LiteSpeed Cache for XenForo plugin package:
- Access the server hosting your XenForo installation, either directly or using File manager or FTP.
- Unzip the uploaded archive
- From the unzipped folder, copy all files under upload to the root directory of your XenForo 2 installation.
- In the XenForo control panel, navigate to the Add-ons section to complete the installation.
Configuration
Once you have downloaded and installed the plugin package, edit the .htaccess file in the XenForo root directory and add the code shown below to the top of the file: `CacheLookup public on
RewriteEngine On
cache
RewriteCond %{HTTP_COOKIE} !(xf_lscxf_logged_in|xf_user|xf_session_admin) [NC]RewriteCond %{REQUEST_URI} !/install/ [NC]
RewriteRule .* - [E=Cache-Control:max-age=360,E=“cache-vary:xf_style_id,xf_language_id”]
no cache
RewriteCond %{HTTP_COOKIE} (xf_lscxf_logged_in|xf_user|xf_session_admin) [NC]RewriteRule .* - [E=Cache-Control:vary=loggedin,E=Cache-Control:no-cache]
`
Verify Your Site is Being Cached
- Open LSCache Check Tool.
- Enter the URL you wish to check.

