Skip to content

ecency/cf-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.