How to enable LSCache for MediaWiki

Overview

This plugin only works on the following cPanel packages:

  • Ultimate
  • WP Professional

This article describes how to install LSCache Plugin on MediaWiki

LSCache for MediaWiki uses advanced cache-management tools and optimization features to create an unmatched user experience, provides premium optimization features for faster page loading and improved scores on page speed measurement sites.

Installation

Download LSCMW:

Upload the downloaded file master.zip using FTP or File Manager

Find the .htaccess file in the MediaWiki root directory, or create one if it doesn't exist. Add the following to the file to enable LSCache:

CacheLookup on

  1. Move the LiteSpeedCache directory to /extensions in the MediaWiki directory

  2. Edit LocalSettings.php in the MediaWiki root directory, and add the following near the end:

wfLoadExtension( 'LiteSpeedCache' );

  1. Log into MediaWiki and from the administrator panel, navigate to Special pages > Data and Tools > LiteSpeed Cache.

  2. Set LiteSpeed Public Cache Enabled to checked and click the Save Cache Setting button.

Verify Your Site is Being Cached

  1. Open LSCache Check Tool.

  2. Enter the URL you wish to check.

The tool will respond with an easy-to-read Yes or No result, and a display of the URL's response headers, in case you want to examine the results more closely.