How to turn off LiteSpeed cache feature on CPanel

Sometimes our web hosting company enables LiteSpeed cache feature on our CPanel so if we make any change in our website, people will not see the changes directly because they are still accessing a cached version of our website for at least 30 seconds, approximately.

For me this thing is annoying, I want to make change on some part of my website and need it to be seen directly by my visitors.

The solution is to turn off this feature by adding this code on .htaccess file on a root directory of our website:

<IfModule LiteSpeed>
CacheDisable public /
CacheDisable private /
</IfModule>

You need to do this on each other sub-domain websites, I think. Because doing it only on public_html root directory won’t work for the other websites hosted in same hosting account.

Leave a Reply

Your email address will not be published. Required fields are marked *