LiteSpeed Cache for XF2 - Community

xF2 Add-on LiteSpeed Cache for XF2 - Community 2.2.1

No permission to download
Compatible XF Versions
2.0
Visible Branding
No
Additional Requirements
LiteSpeed Web Server 5.0.12+ w/ LSCache module
or
OpenLiteSpeed 1.3+ w/ cache module
Developed by LiteSpeed Technologies - the LiteSpeed Cache Plugin for XenForo 2 (LSCXF2) is a PHP-based plugin that communicates with your installation of LiteSpeed Web Server(LSWS) and its built-in page cache, LSCache. Because LSCache is built directly into LSWS, overhead is significantly reduced and caching can be done more efficiently than with other PHP-based caches.

The current community version of LSCXF2 will only cache and serve pages for non-logged in users. After a user has logged in, their page requests will always hit the backend.

Additional Plugin Features
  • Significantly reduce server load and improve site performance through automatic page caching.
  • Support for HTTPS, HTTP/2, & QUIC out-of-box
Installation
  1. Download the LiteSpeed Cache for XenForo plugin package.
  2. Disable any other page caches as these will interfere with LSCXF2.
  3. Access the server hosting your XenForo installation, either directly or using ssh/sftp.
  4. From the unzipped LSCXF2 folder, copy all files under upload to the upload folder of your XenForo installation.
  5. 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 .htaccess with the code shown below, making the following changes where appropriate:
  • Replace xf_user with the new value, if you changed it in XenForo Configuration.
  • If you want to cache for more or less than 360 seconds, change 360 to the number of seconds you wish. (Recommended < 10 minutes):
Code:
# LiteSpeed XenForo cache
<IfModule litespeed>
    CacheLookup public on
    RewriteEngine On
     # cache
     RewriteCond %{HTTP_COOKIE} !xf_user [NC]
     RewriteRule .* - [E=Cache-Control:max-age=360]
     # no cache
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:vary=loggedin]
     RewriteCond %{HTTP_COOKIE} xf_user [NC]
     RewriteRule .* - [E=Cache-Control:no-cache]
</IfModule>
Author
ENXF NET
Downloads
32
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from ENXF NET

Share this resource

Latest updates

  1. LiteSpeed Cache for XF2 Community - 2.2.1

    [Bug Fix] Fixed an issue when clicking on a user under "Members online" or "Staff online" as a...
  2. LiteSpeed Cache for XF2 Community - 2.2.0

    [Improvement] Improved login state detection to prevent forum members who sign in with "Stay...
Top

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock