S
S
Softmark2021-02-21 01:02:00
LiteSpeed ​​Web Server
Softmark, 2021-02-21 01:02:00

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

2 answer(s)
Z
Zettabyte, 2021-02-21
@Zettabyte

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.phpbrowser (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.phpbrowser, 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.

G
Gennick's Macleo, 2021-02-21
@Genice

If not a secret, what is the purpose? Is the disk size limited?
There is complete documentation on this subject.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question