https://github.com/ecency/cf-cache
cloudflare cache purge
https://github.com/ecency/cf-cache
blockchain cache cloudflare ecency hive purge
Last synced: 21 days ago
JSON representation
cloudflare cache purge
- Host: GitHub
- URL: https://github.com/ecency/cf-cache
- Owner: ecency
- Created: 2021-06-12T05:05:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-08-26T11:38:35.000Z (10 months ago)
- Last Synced: 2025-08-26T14:28:23.454Z (10 months ago)
- Topics: blockchain, cache, cloudflare, ecency, hive, purge
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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.