1. Home
  2. CMS/Applications
  3. How to Configure LiteSpeed Cache With Your CMS

How to Configure LiteSpeed Cache With Your CMS

With the growing popularity of “CMS” or “Content Management Systems” such as WordPress, Joomla!, PrestaShop, etc., it has become imperative to set up an efficient caching system to prevent simultaneous visits from overloading web hosting. This configuration enables very fast loading times, serving a “pre-calculated” version and caching the pages of your website.

Step 1 Install LiteSpeed Cache (LSCache)

Installing the LiteSpeed Cache (LSCache) plug-in is very simple.

Go to your CMS plug-in “MarketPlace”. Search for LSCache, then click on Install and Activate.

After installing the plugin, to make it work, you must:

  • activate LsCache (Enable Cache);
  • purge (Purge All).

Step 2 LSCache Main Parameters

In your CMS, go to LiteSpeed Cache – > Presets and select “advanced” mode. Litespeed recommends this mode. You can choose a higher mode until it stops working, or a lower one until it does.

Advanced users can modify the settings themselves using the official documentation: https://docs.litespeedtech.com/lscache/lscwp/dashboard/.

Step 3 – Cloudflare Speed Parameters

This step is optional.

A Cloudflare account can be integrated with LSCache. You can create a free account if you do not already have one.

You can refer to this article to install Cloudflare.

SPEED  >  OPTIMIZATION

  • Auto Minify – “Minify” only JavaScript (HTML and CSS have been minified in LSCache”. Do not enable both in LSCache and Coudflare – choose only one.
  • Brotli – Enabled. Brotli is similar to GZIP. It is more efficient when it comes to file compression.
  • Rocket Loader – Enabled. The “Rocket Loader” is used to “defer” JavaScript. This may not work if JavaScript has been “Minified” with LSCache.
  • Railgun – This parameter has been removed.

SCRAPE SHIELD

  • Email Address Obfuscation – Enabled. Prevents bots from collecting your e-mail address to reduce unwanted e-mails in your mailbox that may consume resources on your hosting.
  • Server-side Excludes – This setting was removed in June 2024.
  • Hotlink Protection – Enabled. Hotlink protection prevents other websites from linking to files on your site. Visitors will still be able to view and download images from your website, but it ensures that spammy sites cannot use your bandwidth by linking back to images hosted on your site.

Step 4 – Purge All Cache

Once configuration is complete, purge all cache from the “LSCache Manage” page.

Then visit your site manually. This way, the site will be cached.

Test the site with https://check.lscache.io/, as described on https://docs.litespeedtech.com/lscache/lscwp/installation/#lscache-check-tool.

Try a speed test with Google PageSpeed Insights.

Your LiteSpeed Cache plugin should now be configured. If you are setting up Cloudflare for the first time, it may take up to 24 hours to activate DNS with your web host.

If you need internal help from LiteSpeed, they are very active in their community.

You can also consult the PlanetHoster forum.

Updated on September 17, 2024

Related Articles