{"id":706,"date":"2023-02-08T12:48:04","date_gmt":"2023-02-08T12:48:04","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/02\/08\/6973388-how-to-clear-the-litespeed-cache-at-hostinger\/"},"modified":"2026-05-08T13:01:58","modified_gmt":"2026-05-08T13:01:58","slug":"6973388-how-to-clear-the-litespeed-cache-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6973388-how-to-clear-the-litespeed-cache-at-hostinger\/","title":{"rendered":"How to Clear the LiteSpeed Cache at Hostinger"},"content":{"rendered":"<h2 id=\"h_fad7176bdb\">What Is Litespeed Cache?<\/h2><p class=\"no-margin\"><b><a href=\"https:\/\/pl.wordpress.org\/plugins\/litespeed-cache\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">LiteSpeed Cache<\/a><\/b> is a caching plugin for WordPress designed to improve the website&rsquo;s performance and speed by caching static pages and posts, reducing the loading time and strain on the server. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">You can learn more about it in this video tutorial:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-h2b-video\">\n<iframe title=\"LiteSpeed Cache: How to Get 100% WordPress Optimization\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/drC7cgDP3vU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><p class=\"no-margin\">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:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_5a33d47859\">Using the LiteSpeed Cache Plugin<\/h2><p class=\"no-margin\">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 &#8203;&#8203;Cache icon to <b>Purge All<\/b> or a specific cache:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/5a93207a-5bc7-47fb-93f3-2e7adc3c2731.jpg\" alt=\"LiteSpeed Cache dropdown showing Purge All - LSCache option highlighted\" width=\"800\" data-media-id=\"3043\"><\/div><p class=\"no-margin\">You may also find these options in<b> LiteSpeed Cache <\/b>&rarr;<b> Toolbox <\/b>on the left: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/2d898f24-a5c1-4013-b348-9031b5c904e0.jpg\" alt=\"LiteSpeed Cache Toolbox in Hostinger, with Toolbox menu and Purge All option highlighted\" data-media-id=\"3045\"><\/div><hr><p class=\"no-margin\">\n<\/p><h2 id=\"h_a90851f462\">Setting a Scheduled Purge Time<\/h2><p class=\"no-margin\">The LiteSpeed Cache plugin lets you schedule purge time. Go to <b>LiteSpeed Cache <\/b>&rarr; <b>Cache<\/b> and open the tab <b>Purge<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/7db3fb05-8bf8-4992-888c-7e76e63fd804.jpg\" alt=\"LiteSpeed Cache settings in WordPress, with the Purge tab and Cache menu highlighted\" data-media-id=\"3046\"><\/div><p class=\"no-margin\">Scroll down to find the section <b>Scheduled Purge Time<\/b>, and select the preferred time to purge the cache automatically:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/3664d4e9-f7bd-4a37-8ec5-a66ac8500c53.jpg\" alt=\"LiteSpeed Cache scheduled purge time field set to 12:00 AM\" data-media-id=\"3047\"><\/div><p class=\"no-margin\">Finally, save the changes.<\/p><hr><p class=\"no-margin\">\n<\/p><h2 id=\"h_3dcf9c2c73\">Clear the LiteSpeed Cache Manually<\/h2><p class=\"no-margin\">To purge the cache manually, open your website&rsquo;s <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-use-hostinger-file-manager\/\" target=\"_blank\" class=\"intercom-content-link\">File Manager<\/a><\/b>, access the <b>public_html<\/b> folder, and find the <b>.htaccess <\/b>file. Double-click to open it:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/a252dec2-3b62-4720-a892-97b5e66ca28c.jpg\" alt=\"Hostinger file manager with the .htaccess file highlighted in public_html\" width=\"800\" data-media-id=\"3048\"><\/div><p class=\"no-margin\">Remove the following lines from the file:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/40e05da8-07e5-4792-afea-198d2a68330f.jpg\" alt=\"LiteSpeed cache rules in the .htaccess file, with the save icon highlighted in the top right\" width=\"800\" data-media-id=\"3049\"><\/div><p class=\"no-margin\">Finally, save the changes and the cache will be removed.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">The process in cPanel is the same, only the file manager has a different appearance. Learn more: <b><a href=\"\/support\/4622321-basic-actions-in-cpanel-file-manager\" target=\"_blank\" class=\"intercom-content-link\">How to Use the cPanel File Manager<\/a><\/b> <\/p>\n<\/li>\n<\/ul><hr><p class=\"no-margin\">\n<\/p><h2 id=\"h_0139b24668\">Clear the LiteSpeed Cache Through SSH<\/h2><p class=\"no-margin\">You may also clear the LiteSpeed Cache <b><a href=\"\/support\/1583245-how-can-i-log-in-to-my-account-via-ssh\" target=\"_blank\" class=\"intercom-content-link\">via SSH<\/a><\/b>. After accessing SSH, go to the WordPress folder. By default, the path is <b>domains\/your-domain-name.tld\/public_html<\/b>, so you can access the folder using this command:<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><code>cd domains\/your-domain-name.tld\/public_html <\/code><\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To remove the cache, use these commands:<\/p><p class=\"no-margin\">\n<\/p><pre><code>wp cache flush<br>wp litespeed-purge all<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">The result will be:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2023\/02\/e1068062-f72a-49bc-ba5a-0a8858e370e0.jpg\" alt=\"Terminal showing WP-CLI cache flush commands and success messages for LiteSpeed cache purge\" data-media-id=\"3050\"><\/div><p class=\"no-margin\">The cache is purged successfully!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to purge the LiteSpeed cache on your website<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[179],"tags":[],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-wordpress-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6973388-how-to-clear-the-litespeed-cache-at-hostinger\/","default":1},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/6973388-cara-menghapus-litespeed-cache-di-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=706"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":6323,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/706\/revisions\/6323"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}