Clearing Cache Via API

I am caching my Ghost blog on cloud-flare completely. To serve updated site to user i have to clear cache of cloud-flare after any changes to website.

now the problem when using there (Ghost) custom integration i can not add any type email or api token in the integration.

I can only add URL ```
https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/purge_cache

So is there any way i can purge cache

I’ve used the following code and bookmarked the URL so I could purge the cache from my browser:

1 Like

Thank You, its pretty neat.

Works like chram

1 Like