Super Page Cache Cloudflare Permissions
Super Page Cache can connect to Cloudflare using either an API Token (recommended for security) or a Global API Key. Each method requires a specific set of permissions.
In this article
Authentication Methods
The plugin supports two methods to authenticate with Cloudflare's API:
API Token (Recommended)
API Tokens provide granular access control with specific permissions for better security. To set up using an API Token:
- Log into your Cloudflare dashboard
- Navigate to My Profile > API Tokens
- Click Create Token
- Select the WordPress template
- Add the Zone > Cache Rules > Edit and Zone > Transform Rules > Edit permissions
- Click Continue to summary
- Review the token summary. Confirm it includes Zone > Zone > Read, Zone > Cache Rules > Edit, Zone > Transform Rules > Edit, and the zone-level permission that allows cache purging (clearing Cloudflare's cached copies of your site's pages). If any are missing, return to the permission editor and add them without removing the template's other permissions. Then click Create Token.
- Copy the generated token
- In plugin settings:
- Select "API Token" authentication mode
- Paste your API token
- Select your domain from the dropdown after the token is verified
Keep all permissions supplied by the WordPress template. Verify that the finished token includes Zone > Zone > Read, which lets the plugin load the list of domains (zones) on your Cloudflare account, and the zone-level permission that allows cache purging. Do not assume the template includes everything required: check the token summary and add any missing permissions, including:
- Zone > Cache Rules > Edit
- Zone > Transform Rules > Edit
⚠️ Important: If you build a custom token instead of starting from the WordPress template, include all required permissions listed above, not only Zone > Zone > Read. Without that reading permission, the plugin cannot fetch your domain list. Missing cache-purging or rule-editing permissions can also cause permission errors. Review every permission on the summary screen before you click Create Token.
If a permission error appears when connecting
If the domain selector stays empty after connecting, your API token is commonly missing Zone > Zone > Read. This is not the only cause of a permission error: a missing zone-level cache-purging permission can cause a persistent permission error, prevent the selected domain configuration from saving, or leave Cloudflare caching disabled. To fix it:
- In your Cloudflare dashboard, open My Profile > API Tokens and edit the token you connected (or create a new one).
- Add any missing permissions: Zone > Zone > Read, Zone > Cache Rules > Edit, Zone > Transform Rules > Edit, and the zone-level permission that allows cache purging. Keep the token's other required permissions, review the summary, and save the edited token or create the replacement token.
- In WordPress, go to Settings > Super Page Cache > Cloudflare. Re-enter the updated or replacement token in Cloudflare API Token, then use the connection control to reconnect to Cloudflare. Reload the settings page.
- Under Zone Selection, select the domain that matches your WordPress site and save the selection.
The domain configuration should save successfully, and Cloudflare caching should no longer remain disabled.
For more recovery steps, see Troubleshooting: Cloudflare zone dropdown is blank or frozen.
API Key
The Global API Key provides full account access and is less secure:
- Log into your Cloudflare dashboard
- Navigate to My Profile > API Tokens
- Scroll down to API Keys section
- Click View next to Global API Key
- Copy the API Key
- In plugin settings:
- Select "API Key" authentication mode
- Enter your Cloudflare account email
- Paste your Global API Key
Note: API Token is the recommended authentication method as it follows security best practices by limiting access to only required permissions.
