Super Page Cache Cloudflare Permissions
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
- Click Continue to summary
- Review permissions and click Create Token
- Copy the generated token
- In plugin settings:
- Select "API Token" authentication mode
- Paste your API token
- Enter your domain name
The WordPress template automatically configures the required permissions, but you will also have to add two permissions manually:
- Zone/Cache Rules: Edit
- Zone/Transform Rules: Edit
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.