Can someone provide an example of how to purge CloudFlare from a Git post-receive hook?
Something like https://gist.github.com/jonlong/240eb9a7501f1ae4c09f but using the current API.
If there is a way using a Linux CloudFlare CLI client that would be fine too.
Surprisingly (given this was a common task) there's nothing obvious searching here or on Google.
Thanks in advance for suggestions.
The current API should be
POST zones/:identifier/purge_cacheIf you can test it in command-line first, it should be easy to include it your post-receive hook.
The OP rodneyt confirms in the comments the solution is working, and adds: