Simple script to purge Cloudflare cache for user avatars, cache purged when account update operations are detected on Hive blockchain.
CF_ZONE
- Cloudflare zone ID for your domain
CF_API_TOKEN
or CF_ACCOUNT_API_TOKEN
- Cloudflare API token with permission to purge cache for the zone
CF_EMAIL
and CF_KEY
- legacy email and global API key (used only if no token is provided)
DOMAIN
- imagehoster instance, e.g. https://images.ecency.com
Purges are sent in batches of up to 30 URLs to comply with Cloudflare plan limits.