{"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-11-06T04:46:29","modified_gmt":"2026-11-06T04:46:29","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":"<p>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 <code dir=\"ltr\">.htaccess<\/code> file, or run WP-CLI commands via SSH.<\/p>\n<h2 id=\"h_fad7176bdb\">What is Litespeed Cache?<\/h2>\n<p class=\"no-margin\"><strong><a data-click-id=\"hgr-post-content-link-litespeed-cache\" href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\" target=\"_blank\" rel=\"noopener\">LiteSpeed Cache<\/a><\/strong> is a caching plugin for WordPress designed to improve the website\u2019s performance and speed by caching static pages and posts, reducing the loading time and strain on the server. To also cache database query results, <a data-click-id=\"hgr-post-content-link-manage-object-cache-for-wordpress-websites\" href=\"https:\/\/www.hostinger.com\/support\/6099689-how-to-manage-object-cache-for-wordpress-websites-at-hostinger\/\">manage object cache for WordPress websites<\/a>.<\/p>\n<p class=\"no-margin\">You can learn more about it in this video tutorial:<\/p>\n<div class=\"intercom-h2b-video\">\n<p><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><\/p>\n<\/div>\n<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>\n<h2 id=\"h_5a33d47859\">Using the LiteSpeed Cache plugin<\/h2>\n<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 \u200b\u200bCache icon to <b>Purge All<\/b> or a specific cache:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2023\/02\/5a93207a-5bc7-47fb-93f3-2e7adc3c2731.jpg\/public\" alt=\"LiteSpeed Cache dropdown showing Purge All - LSCache option highlighted\" width=\"800\" data-media-id=\"3043\" \/><\/div>\n<p class=\"no-margin\">You may also find these options in<b> LiteSpeed Cache <\/b>\u2192<b> Toolbox <\/b>on the left:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2023\/02\/2d898f24-a5c1-4013-b348-9031b5c904e0.jpg\/public\" alt=\"LiteSpeed Cache Toolbox in Hostinger, with Toolbox menu and Purge All option highlighted\" data-media-id=\"3045\" \/><\/div>\n<h2 id=\"h_a90851f462\">Setting a scheduled purge time<\/h2>\n<p class=\"no-margin\">The LiteSpeed Cache plugin lets you schedule purge time. Go to <b>LiteSpeed Cache <\/b>\u2192 <b>Cache<\/b> and open the tab <b>Purge<\/b>:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2023\/02\/7db3fb05-8bf8-4992-888c-7e76e63fd804.jpg\/public\" alt=\"LiteSpeed Cache settings in WordPress, with the Purge tab and Cache menu highlighted\" data-media-id=\"3046\" \/><\/div>\n<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>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2023\/02\/3664d4e9-f7bd-4a37-8ec5-a66ac8500c53.jpg\/public\" alt=\"LiteSpeed Cache scheduled purge time field set to 12:00 AM\" data-media-id=\"3047\" \/><\/div>\n<p class=\"no-margin\">Finally, save the changes.<\/p>\n<h2 id=\"h_3dcf9c2c73\">Clear the LiteSpeed Cache manually<\/h2>\n<p class=\"no-margin\">To purge the cache manually, open your website\u2019s <strong><a data-click-id=\"hgr-post-content-link-file-manager\" href=\"https:\/\/www.hostinger.com\/support\/4548688-basic-actions-in-the-file-manager-in-hostinger\/\">File Manager<\/a><\/strong>, access the <code dir=\"ltr\">public_html<\/code> folder, and click the <code>.htaccess<\/code> file to open it. Remove the following lines from the file:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-24739\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-45.png\" alt=\"\" width=\"1663\" height=\"679\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-45.png 1663w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-45-300x122.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-45-1024x418.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-45-768x314.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-45-1536x627.png 1536w\" sizes=\"(max-width: 1663px) 100vw, 1663px\" \/><\/div>\n<p class=\"no-margin\">Finally, click <strong>Deploy<\/strong> to make the changes live, and the cache will be removed.<\/p>\n<p class=\"no-margin\"><b>NOTE<\/b><\/p>\n<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 data-click-id=\"hgr-post-content-link-how-to-use-the-cpanel-file-manager\" class=\"intercom-content-link\" href=\"\/support\/4622321-basic-actions-in-cpanel-file-manager-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">How to Use the cPanel File Manager<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n<h2 id=\"h_0139b24668\">Clear the LiteSpeed Cache through SSH<\/h2>\n<p class=\"no-margin\">You may also clear the LiteSpeed Cache <b><a data-click-id=\"hgr-post-content-link-via-ssh\" class=\"intercom-content-link\" href=\"\/support\/1583245-how-to-connect-to-a-hosting-plan-via-ssh-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">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>\n<p class=\"no-margin\"><code>cd domains\/your-domain-name.tld\/public_html <\/code><\/p>\n<p class=\"no-margin\">To remove the cache, use these commands:<\/p>\n<pre><code>wp cache flush\r\nwp litespeed-purge all<\/code><\/pre>\n<p class=\"no-margin\">The result will be:<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2023\/02\/e1068062-f72a-49bc-ba5a-0a8858e370e0.jpg\/public\" alt=\"Terminal showing WP-CLI cache flush commands and success messages for LiteSpeed cache purge\" data-media-id=\"3050\" \/><\/div>\n<p class=\"no-margin\">The LiteSpeed Cache is now purged, and your website shows its latest changes. If the changes still don\u2019t appear, follow <a data-click-id=\"hgr-post-content-link-how-to-clear-cache-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/1583501-how-to-clear-cache-in-hostinger\/\">How to clear cache at Hostinger<\/a> to clear your browser, DNS, and CDN cache as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","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":7,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":24740,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/706\/revisions\/24740"}],"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}]}}