CDN: Cloudflare¶
Summary¶
Use Cloudflare when your site is fronted by a Cloudflare zone and you want publish-time cache purging with scoped API tokens.
Outcome¶
After completing this guide, SkyCMS will purge the Cloudflare zone cache on publish using the configured API token and zone ID.
Steps¶
- Follow the Create a Cloudflare API Token guide to generate a token with Zone Cache Purge permissions.
- Navigate to Settings → CDN in the SkyCMS admin panel.
- Select Cloudflare as the provider.
- Enter the zone ID and API token.
- Click Test Connection to confirm permissions, then click Save.
Required settings¶
- zone ID,
- API token with Zone Cache Purge permissions for the target zone.
Credential setup¶
Use Create a Cloudflare API Token for Cache Purge for step-by-step instructions on:
- finding the correct zone ID,
- choosing between user and account-owned tokens,
- creating a least-privilege token,
- verifying the token before using it in SkyCMS.
Routing and cache rules¶
Recommended rules:
- purge targeted paths where possible,
- keep token scope limited to the production zone,
- rotate tokens and update configuration regularly.
Validation checklist¶
- token and zone ID pass save or test,
- publish triggers purge successfully,
- updated pages appear without stale cache artifacts.