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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay