Skip to content

Instantly share code, notes, and snippets.

@uurtech
Created February 11, 2020 10:34
Show Gist options
  • Save uurtech/e82e4ab0e4f2c0bf38b20e49720fde81 to your computer and use it in GitHub Desktop.
Save uurtech/e82e4ab0e4f2c0bf38b20e49720fde81 to your computer and use it in GitHub Desktop.
Bash command to purge cloudflare cache
echo alias purge_cache=\"curl -X POST "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE/purge_cache" -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json" --data "{"purge_everything":true}"\" >> ~/.zshrc && source
#then you can use purge_cache in your terminal to purge caches in cloudflare zone that you provided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment