Learn cPanel

Controlling your Web Hosting Account has never been that easy thanks to cPanel web Control Panel!

• Last Updated: 01/30/2020
• ( 3 minutes reading )

How to manage the LiteSpeed Cache for your websites in cPanel

Introduction

Litespeed is a high-performance Web Server that we have chosen for some of our Cloud SSD Shared Web Hosting packages. 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. 

...
Sebahat
Content Marketing Specialist

Sebahat is a young and bright woman who has become an invaluable part of our team. She started as a Customer Care Representative, mastering that role and, along the way, growing into a tech-savvy individual who is well acquainted with every support layer of the company. Driven by her aim to improve our customers’ experience constantly, she is committed to enhancing the extraordinary support we deliver.