DEV Community

Bruce Axtens
Bruce Axtens

Posted on

How to do I purge the LiteSpeed cache using WordPress's REST API?

I'm communicating with a WordPress site's REST API with RestSharp. I've authorised myself to the client's website and issued a GET to https://REDACTED/wp-json/litespeed/v1/ping. I've received a promising looking response: {"ver":"5.3.2","_res":"ok"}.

Now, how do I now trigger a purge_all?

Top comments (0)