LiteSpeed Cache is a caching plugin for WordPress. It's designed to improve the website's performance and speed by caching static pages and posts to reduce the load time and reduce the strain on the server.
However, using the plugin can prevent you from seeing the website's changes immediately. This article shows how to clear the LiteSpeed cache, so you could view the latest changes right away.
Clear the Cache Using the LiteSpeed Cache Plugin
The easiest way to clear cache is to use LiteSpeed Cache tools. You can find this option at the top of your WordPress administrator panel. Hover the mouse over the LiteSpeed Cache icon to Purge All or a specific cache:
You may also find these options in LiteSpeed Cache → Toolbox on the left:
Setting Scheduled Purge Time in the LiteSpeed Cache Plugin
The LiteSpeed Cache plugin lets you schedule purge time. Go to LiteSpeed Cache → Cache and open the tab Purge:
Scroll down to find the section Scheduled Purge Time, and select the preferred time to purge the cache automatically:
Finally, save the changes.
Clear the LiteSpeed Cache Manually
To purge the cache manually, open your website's File Manager, access the public_html folder, and find the .htaccess file. Double-click to open it:
Remove the following lines from the file:
Finally, save the changes and the cache will be removed.
NOTE:
The process in cPanel accounts is the same as above, only that the UI is slightly different; learn more: How to Use Cpanel File Manager
Clear the LiteSpeed Cache via SSH
You may also clear the LiteSpeed Cache using SSH: How can I log in to my account via SSH?
After accessing the SSH you need to access the WordPress Folder. By default, the path is domains/your-domain-name.tld/public_html, so you can access the folder using this command:
cd domains/your-domain-name.tld/public_html
To remove the cache, use these commands:
wp cache flush
wp litespeed-purge all
The result will be:
The cache is purged successfully!