• Hi Guest ! You can earn PHC Points by sharing a post , tutorials and others stuff. Use PHC Points to unlock premium contents.
Resource icon

XF 2.2 LiteSpeed Cache for XF2 - Community 2.2.3-1

No permission to download
Make sure Litespeed is enabled in your server control panel BEFORE you install & configure this addon.

Installation

  • Download the
    Please, Log in or Register to view URLs content!
    addon.
  • Access the server hosting your XenForo installation, either directly or using SSH or SFTP.
  • From the unzipped LSCXF2 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

All configuration for this plugin is handled at the .htaccess level. There is no admin screen.

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:

Code:
Please, Log in or Register to view codes content!

Make the following customizations where appropriate:
  • If your XenForo site has a separate mobile view, include the following lines inside the <IfModule litespeed> tags:
    Code:
    Please, Log in or Register to view codes content!
  • The default cookie prefix set for XenForo is xf_, so all cookies set by xenForo will begin with this prefix (xf_user, xf_session_admin, etc). If you have changed the cookie prefix in the XenForo configuration file, please make sure to update all xf_COOKIE_NAME cookies in the rewrite rules above to use the correct prefix. For example, if your set cookie prefix is myXF_ you would update xf_user to myXF_user and so on.
  • If you want to cache for more or less than 360 seconds, change 360 to the number of seconds you wish. (Recommended < 10 minutes).
Verify Your Site is Being Cached
  1. From a non-logged-in browser, navigate to your site, and open the developer tools (usually, right-click > Inspect). Open the Network tab.
  2. Refresh the page.
  3. Click the first resource. This should be an HTML file. For example, if your page is
    Please, Log in or Register to view URLs content!
    , your first resource should either be something like example.com/webapp/ or webapp/.
  4. You should see headings similar to these:
    Code:
    Please, Log in or Register to view codes content!
    These headings mean the page had not yet been cached, but that LiteSpeed has now stored it, and it will be served from cache with the next request.
  5. Reload the page and you should see X-LiteSpeed-Cache: hit in the response header. This means the page is being served by LSCache and is configured correctly.

Latest posts

PHCracker.net is in compliance with 17 U.S.C. § 512 and the Digital Millennium Copyright Act (“DMCA”). It is our policy to respond to any infringement notices and take appropriate actions under the Digital Millennium Copyright Act (“DMCA”) and other applicable intellectual property laws.

Send the infringement notice via email to [email protected] or contact us here.

Please allow us a week or two for an email response. Note that emailing your complaint to other parties such as our Internet Service Provider will not expedite your request and may result in a delayed response due the complaint not properly being filed.

Disclaimer: This site does not store any files on it's server. All contents are provided by non-affiliated third parties. PHCracker.net cannot be held liable for any content on the site. We link to content stored on other site / or servers, We do not host these ourselves. By visiting and / or registering to PHCracker.net, you agree to our Terms of Service and Conditions. For complaints / questions, don't hesitate to Contact Us.
Top