How to clear the LiteSpeed Cache at Hostinger

Clear the LiteSpeed Cache at Hostinger from the plugin, with a scheduled purge, through the .htaccess file, or via SSH to see your latest changes.

Updated 6 days ago

Clear the LiteSpeed Cache at Hostinger to see your latest WordPress website changes right away. There are four ways to purge it: use the LiteSpeed Cache plugin, schedule automatic purges, edit the .htaccess file, or run WP-CLI commands via SSH.

What is Litespeed Cache?

LiteSpeed Cache is a caching plugin for WordPress designed to improve the website’s performance and speed by caching static pages and posts, reducing the loading time and strain on the server. To also cache database query results, manage object cache for WordPress websites.

You can learn more about it in this video tutorial:

Caching is generally helpful, though it may delay the visibility of website changes, which can be an issue during website development. If you want to see the latest changes immediately, here are a few options to clear the LiteSpeed cache:

Using the LiteSpeed Cache plugin

The easiest way to clear the 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:

LiteSpeed Cache dropdown showing Purge All - LSCache option highlighted

You may also find these options in LiteSpeed Cache → Toolbox on the left:

LiteSpeed Cache Toolbox in Hostinger, with Toolbox menu and Purge All option highlighted

Setting a scheduled purge time

The LiteSpeed Cache plugin lets you schedule purge time. Go to LiteSpeed Cache → Cache and open the tab Purge:

LiteSpeed Cache settings in WordPress, with the Purge tab and Cache menu highlighted

Scroll down to find the section Scheduled Purge Time, and select the preferred time to purge the cache automatically:

LiteSpeed Cache scheduled purge time field set to 12:00 AM

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 click the .htaccess file to open it. Remove the following lines from the file:

Finally, click Deploy to make the changes live, and the cache will be removed.

NOTE

Clear the LiteSpeed Cache through SSH

You may also clear the LiteSpeed Cache via SSH. After accessing SSH, go to 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:

Terminal showing WP-CLI cache flush commands and success messages for LiteSpeed cache purge

The LiteSpeed Cache is now purged, and your website shows its latest changes. If the changes still don’t appear, follow How to clear cache at Hostinger to clear your browser, DNS, and CDN cache as well.