Cloudflare Integration: Full Setup Guide
WP Compress integrates with Cloudflare to provide automated cache purging and uninterrupted access, ensuring your website stays optimized and up to date without manual intervention.
Step 1: Generate an API Token
- Log in to Cloudflare
- Click your profile icon in the top right and select My Profile
- Navigate to the API Tokens tab
- Click Create Token

- Click Create Custom Token

Step 2: Configure the API Token
- Configure the token permissions as shown below

- Save your settings — it should look like this

- Copy your token and store it somewhere safe

Step 3: Connect to WP Compress
- Navigate to your WP Compress settings
- Locate the Cloudflare Integration section
- Paste the API token and click Connect
- Select the zone you want to link from the dropdown
- Click Connect — the page will update once the connection is confirmed
Once connected, WP Compress will automatically purge the Cloudflare cache whenever optimizations are applied. To link additional sites, simply return to the Cloudflare Integration section, select a new zone, and connect — no new token needed.
Need Help?
Updated on: 03/03/2026
Thank you!
