From 49a5f4691e5831140a49a9b4bf22d1abe487a1b3 Mon Sep 17 00:00:00 2001 From: Dan Head Date: Wed, 7 Mar 2018 20:27:58 +0000 Subject: [PATCH] Purge everything --- build.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/build.sh b/build.sh index d58ea02..5dfb1d4 100755 --- a/build.sh +++ b/build.sh @@ -10,18 +10,9 @@ if [[ -z "${CLOUDFLARE_API_KEY}" ]] || [[ -z "${CLOUDFLARE_EMAIL}" ]] || [[ -z " exit 1 fi -read -r -d '' DATA << EOM -{ - "files": [ - "https://beta.windycoys.com/wp-content/themes/windycoys/style.css", - "https://beta.windycoys.com/wp-content/themes/windycoys/bundle.js" - ] -} -EOM - curl -X DELETE \ -H "Content-Type: application/json" \ -H "X-Auth-Key: $CLOUDFLARE_API_KEY" \ -H "X-Auth-Email: $CLOUDFLARE_EMAIL" \ - --data "$DATA" \ + --data '{"purge_everything":true}' \ "https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_IDENTIFIER/purge_cache"