Purge everything
This commit is contained in:
11
build.sh
11
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"
|
||||
|
||||
Reference in New Issue
Block a user