Beschrijving
Webreact integration for SpinupWP and Cloudflare
Beschrijving
This plugin connects your SpinupWP-managed sites to Cloudflare, automatically purging cache when you purge sites, posts, or URLs in SpinupWP. It supports both modern API tokens and legacy API keys for flexible authentication.
Features:
- Automatic cache purging on SpinupWP site purges
- Purge specific URLs from Cloudflare cache
- Manual purge button in WordPress admin bar
- Support for Cloudflare API tokens (recommended) and legacy API keys
- Clean, intuitive settings interface
- Full nonce verification for security
- PSR-12 compliant code with strict typing
Configuration
Authentication Type:
– API Token (Recommended): Modern, scoped authentication method. More secure with granular permissions.
– Only requires your API token and Zone ID
– API Key (Legacy): Original authentication method
– Requires email, Zone ID, and global API key
Finding Your Cloudflare Zone ID:
1. Log in to Cloudflare
2. Select your domain
3. In the right sidebar, copy the Zone ID
Creating an API Token:
1. Go to Cloudflare Profile > API Tokens
2. Create Token with “Cache Purge” permissions
3. Copy the token and paste into plugin settings
Using API Key (Legacy):
1. Go to Cloudflare Profile > API Tokens
2. Find Global API Key (or create one)
3. Copy your email and API key to plugin settings
Security
This plugin stores Cloudflare credentials in the WordPress options table. Ensure your WordPress installation is properly secured:
– Use strong admin passwords
– Keep WordPress and plugins updated
– Consider using a Web Application Firewall
All API requests use HTTPS and verify SSL certificates. All output is properly escaped and all nonces are verified.
Support
For issues or feature requests, please visit the plugin repository or contact Webreact.
License
GPLv2 or later
Installatie
- Upload the plugin files to the
/wp-content/plugins/webreact-integration-for-spinupwp-cloudflaredirectory, or install via the WordPress plugins screen. - Activate the plugin.
- Go to Settings > SpinupWP Cloudflare and enter your Cloudflare credentials.
- Choose authentication method (API Token or API Key).
- Enable automatic purging if desired.
FAQ
Does this work with all Cloudflare plans?
Yes, as long as you have API access to your zone.
Does it require the SpinupWP plugin?
The SpinupWP plugin is required for automatic cache purging. Manual purging from the admin bar works without it.
Which authentication method should I use?
API tokens are recommended for security and should be your default choice. They allow scoped permissions and are easier to rotate.
Can I use both API tokens and API keys?
No, you can only choose one authentication method at a time via the settings dropdown.
What happens if credentials are invalid?
The plugin will show a status message in the settings page. The “Purge Cloudflare Cache” button will not appear in the admin bar.
Does it cache the response?
No, each purge request is sent directly to Cloudflare.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Webreact integration for SpinupWP and Cloudflare” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Webreact integration for SpinupWP and Cloudflare” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.1.0
- Added support for Cloudflare API tokens (recommended authentication method)
- Added authentication type selector in settings (API Token vs API Key)
- Improved settings UI with conditional field display
- Enhanced security with proper sanitization for both auth types
- Default authentication is now API Token
- Improved inline documentation and PHPDoc blocks
1.0.0
- Initial release with API Key authentication




