Wordpress LScache Plugin: Deleting lscache folder content
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, Is there any drawback in deleting the lscache folder content and using that as a manual purge mechanism? I need it for a cron job script. Thank you! Hi @rubinstein, if you want to purge the cache manually, you can use our purge API. Hi @stanleylitespeed, Oh, using an API is a bit too complicated for me, Im not a programmer. But Ive since managed to do a purge with WP CLI, that didnt work before in a cron job, only in a bash shell. You have to use it like this to work in a script for a cron job: /usr/local/bin/php /usr/local/bin/wp lscache-purge all ?path=/home/user/public_html/ Deleting the lsache folder content also seems to work, I found it here in this article: https://www.a2hosting.com/kb/a2-hosting-products/turbo-web-hosting/clearing-the-litespeed-cache So thats why I was asking if there were any side effects in using this method. Or, in other words, whats the advantage of using the WP CLI purge method? Deleting cache folder should work, WP CLI or API is just an easier and safer way to purge the cache to prevent removing wrong folder and folder permission problem. So you can keep use the folder removing method if you tested and it is working. Hi @stanleylitespeed, Thank you very much, that answered my question.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference