Getting Started
Requirements
- WordPress 6.4+
- PHP 8.0+
- A Cloudflare-proxied domain (orange cloud ☁️ enabled in DNS)
Installation
-
Download RelayWP from the WordPress plugin repository:
wp plugin install tagpurge --activateOr install via Plugins → Add New and search for “RelayWP”.
-
Go to Settings → RelayWP in your WordPress admin.
-
Enter your Cloudflare Zone ID and API Token.
- Zone ID: Found in your Cloudflare dashboard under Overview → Zone ID
- API Token: Create one at Cloudflare → My Profile → API Tokens.
Required permissions:
Zone.Cache Purge(Edit) +Zone.Zone(Read)
-
Click Test Connection to verify your credentials.
Cloudflare Page Rules
Ensure your Cloudflare cache level is set to Cache Everything for your origin (or use a Cache Rule). RelayWP only purges — it does not control what gets cached.
Cache-Tag header
After activation, visit any post and check the response headers:
Cache-Tag: post:42,author:7,category:news,feed:post,page:home
This confirms tag injection is working.