ExpressionEngine extension for Cloudflare.
This extension currently purges all the cache. We change this down the road and give users more granularity over what is purged.
This extension requires you to create a new Cloudflare API token with the proper permissions to purge the cache for your domain. You'll also need to find your Zone ID for your domain.
- Login to Cloudflare
- Click the user icon at the top right of the screen
- Click "My Profile"
- Click "Api Tokens"
- Click "Create Token"
- Give the token a name, your domain name would be fine
- Under "Permissions" change it from "Account" to "Zone"
- Also under "Permissions" pick "Cache Purge"
- Also under "Permissions" pick "Edit"
- Under "Zone Resources" we recommend you change that to "Specific Zone"
- Also under "Zone Resources" you should pick the domain name for that zone
- Click "Continue to summary"
- Click "Create Token"
- Copy the token and put it some place safe
When you first go to the page for your domain, your Zone ID is on that page. If you're on a desktop, it'll be in the right hand column towards the bottom. If you're on mobile, it'll be near the bottom of the page.
- Where To Find Zone ID?
- Cloudflare API v4 Documentation
- Cloudflare API Documentation on Zones
- Managing API Tokens and Keys
Not sure if this is needed, but we are in no way affiliated with Cloudflare, Inc.