philomena/docker/app/purge-cache

19 lines
394 B
Text
Raw Normal View History

2020-12-16 16:53:26 +01:00
#!/bin/bash
# Run your custom purge command here.
#
# The script receives the list of URLs to be purged
# as JSON on the first argument.
#
# {"files":[]}
body="$1"
api_token=
zone_id=
# curl -XPOST \
# -H "Content-Type: application/json" \
# -H "Authorization: Bearer ${api_token}" \
# "https://api.cloudflare.com/client/v4/zones/${zone_id}/purge_cache" \
# -d "${body}"