Answer the question
In order to leave comments, you need to log in
How to reset the LiteSpeed cache on a schedule?
How to cron clear the entire wordpress litespeed cache, including the cloudflare cache, every 15 minutes?
Answer the question
In order to leave comments, you need to log in
With a high degree of probability, you can simply clear the LiteSpeed cache manually. Look for a folder lscache
(there are usually "digital" subfolders inside: 1, 2, 3, ...), if it exists, then delete its contents at the required frequency. It can be in the root of the FS, do not confuse it with the plugin directory only.
You can also use curl. You have some rules in .htaccess, you can call curl -isX PURGE https://VashSite.ru/index.php
. If you call curl from another host, then its IP must be added to the "Trusted" list.
Check how it works with WordPress:
First go to your https://VashSite.ru/index.php
browser (or what you check answers with) and make sure that there is a X-Litespeed-Cache: hit
.
Then run the command above. Then immediately go back to the https://VashSite.ru/index.php
browser, you should seeX-Litespeed-Cache: miss
(unless, of course, someone made such a request after the reset faster than you).
I won’t tell you about Cloudflare, I haven’t studied it, see their docks. They probably have some kind of API, WebHooks, or something similar.
If not a secret, what is the purpose? Is the disk size limited?
There is complete documentation on this subject.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question