Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:lscxf2 [2018/03/09 22:37]
Michael Alegre Removed Features list and added link to XF1 install.
litespeed_wiki:cache:lscxf2 [2020/08/05 16:33] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== LSCache Plugin for XenForo 2 ====== +~~REDIRECT>​https://docs.litespeedtech.com/lscache/lscxf/overview/~~
- +
-This guide is intended for XenForo 2.x users. For XenForo 1.x installation instructions [[litespeed_wiki:​cache:​lscxf:​installation|click here]]. +
- +
-===== Installation ===== +
- +
-  - [[https://xenforo.com/community/resources/litespeed-cache-for-xf2-community.6248/|Download LSCXF2]] +
-  - Disable any other page caches as these will interfere with LSCXF2. +
-  - Access the server hosting your XenForo installation,​ either directly or using ssh/sftp. +
-  - From the unzipped LSCXF2 folder, copy all files under upload to the upload folder of your XenForo installation. +
-  - In the XenForo control panel, navigate to the Add-ons section to complete the installation. +
- +
-===== Configuration ===== +
- +
-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): +
- +
-  # 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:​no-cache] +
-  </​IfModule>​ +
- +
-===== Notes ===== +
- +
-  * LSCXF2 is rewrite-rule based. There is currently no tag-based purge available (though, we are working on it for the future). Because of this, it is recommended that you use a small TTL (less than 10 minutes, or 600 seconds). A small TTL minimizes the chances of serving stale content. +
-  * Only non-logged-in users are served from cache. +
-  * LSCXF2 is developed specifically for XenForo 2.x. If you are running a XenForo 1.x forum, please use [[litespeed_wiki:​cache:​lscxf#​lscxf_for_xenforo_1x|LSCache for XenForo 1]]. +
  • Admin
  • Last modified: 2018/03/09 22:37
  • by Michael Alegre