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. 

Naturally, the LiteSpeed creators noticed how popular WordPress has become. Thus, they created a high-performance, easy-to-manage, and easy-to-integrate plugin for the application that works in unison with the already high-performing LiteSpeed Web server - LiteSpeed Cache. In the next line of our tutorials, we will go over the LiteSpeed Webcache Manager in cPanel and how you can use it to manage the cache.


Without further ado, let us begin!

 

Litespeed and LSCache

LSCache is a module for the Litespeed Web Server that provides a powerful caching mechanism for static and dynamic web pages. Depending on whether or not you are utilizing an open-source application, you have two options to take advantage of this caching solution. 

 

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 on which your website is based. 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 on 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 use the LSCache module with some additional coding. You can get more information by checking their official documentation.

 

How to flush the LSCache for your Web Hosting Account


To access the feature, you must first log into your cPanel Web Hosting account. To do that, please follow our tutorial on how to access the cPanel service.

 

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. 

 

litespeed-cache-manager

 

Once you click on the "LiteSpeed Web Cache Manager" feature cPanel will redirect you to the default page where you will be able to perform different configurations. 

 

To Flush the LSCache, 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.

 

flush-all

 

Please bear in mind that this will flush the LSCache for all websites utilizing it with an additional installed plugin. If you would like to flush the cache for a specific website, you will have to do it from within the website's administration area. Depending on the open-source application used, you will have different options to flush the cache. We have great tutorials on how to use, configure, and optimize your website using the LiteSpeed caching plugin under our LiteSpeed Cache WordPress tutorial section.

...
Nikola Zgurev
Technical Support Captain

Nikola is an accomplished tech-savvy extraordinaire with over six years of experience in the web hosting field. He started as a customer care representative and quickly rose the ranks to become a support supervisor and, eventually - the head of the technical department in HostArmada. His deep understanding of the client's needs, combined with his technical knowledge, makes him the perfect man to create the ideal harmony between client satisfaction and professional problem-solving. You will often find him creating helpful tutorials, articles, and blog posts that help existing customers get around.