Skip to content

bulldogcreative/cloudflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare

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.

Settings

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.

Creating a Token

  1. Login to Cloudflare
  2. Click the user icon at the top right of the screen
  3. Click "My Profile"
  4. Click "Api Tokens"
  5. Click "Create Token"
  6. Give the token a name, your domain name would be fine
  7. Under "Permissions" change it from "Account" to "Zone"
  8. Also under "Permissions" pick "Cache Purge"
  9. Also under "Permissions" pick "Edit"
  10. Under "Zone Resources" we recommend you change that to "Specific Zone"
  11. Also under "Zone Resources" you should pick the domain name for that zone
  12. Click "Continue to summary"
  13. Click "Create Token"
  14. Copy the token and put it some place safe

Screenshot of creating a token

screenshot of Cloudflare page to create a new token

Finding your Zone ID

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.

Resources

Disclaimer

Not sure if this is needed, but we are in no way affiliated with Cloudflare, Inc.