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)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay