View Categories

How to manage the LiteSpeed Cache for your websites in cPanel

1 min read

Introduction #

Litespeed is a high-performance Web Server that we have chosen as the basis of all our servers. It is a perfect replacement for the typical Apache Web Server since it is way faster when handling raw web requests and also when compiling PHP scripts. Additionally, it integrates completely with existing Apache modules such as Mod Rewrite and Mod Security. 

Litespeed supports HTTP/3 due to the native support of the QUIC protocol. This is dramatically increasing the loading speed of HTTP components, the security when communicating with the Web Server, and also the general reliability of the Web Hosting Service. 

Litespeed and LSCache #

LSCache is a module for the Litespeed Web Server. It provides a powerful caching mechanism for static and dynamic web pages. In order to take advantage of this caching solution, you have two options depending on whether or not you are utilizing an Opensource application. 

If you are using an Opensource Application…

… you can connect it to the LSCache Litespeed module by installing an additional plugin for the concrete Opensource application your website is based on. At this point Litespeed provides official plugins for the following Opensource applications:

  • WordPress
  • Magento
  • Joomla
  • Prestashop
  • Opencart
  • Drupal
  • XenForo
  • MediaWiki
  • Laravel
  • Shopware

You can find the installation packages for your application at the official LSCache Opensource Applications list

If you are NOT using an Opensource Application…

… then most probably you are using some sort of framework or your website is built with custom code. In this case, you can still take advantage of the LSCache module but with some additional coding. You can get more information by checking their official documentation.

How to flush the LSCache for your Web Hosting Account #

No matter which of the above described LSCache use cases your website relates to, at some point you might want to flush the generated case and renew it. To do that, LiteSpeed provides a plugin that integrates with the cPanel service. The plugin is called “LiteSpeed Web Cache Manager” and you can find it under the “Advanced” features group. 

Accessing the LiteSpeed Web Cache Manager

Clicking on the “LiteSpeed Web Cache Manager” feature will redirect you to the default page where you will be able to perform different configurations. 

To be able to Flush the LSCache you will have to scroll down until you reach the section called “Flush LSCache“. In that section, you will find a single button called “Flush All” and by clicking it the cache of all the websites using the LSCache feature will be completely deleted.

Flushing the LSCache

Please bear in mind that this will flush the LSCache for all of the websites utilizing it with an additionally installed plugin. If you would like to flush the cache for a specific website, then you will have to do it from within the website’s administration area. Depending on the used Opensource application, you will have different options to flush the cache. 

Powered by BetterDocs