Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 582 Bytes

File metadata and controls

16 lines (8 loc) · 582 Bytes

Cloudflare cache purge

Simple script to purge Cloudflare cache for user avatars, cache purged when account update operations are detected on Hive blockchain.

Env variables

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.