Skip to main content
RelayWP

Getting Started

Requirements

  • WordPress 6.4+
  • PHP 8.0+
  • A Cloudflare-proxied domain (orange cloud ☁️ enabled in DNS)

Installation

  1. Download RelayWP from the WordPress plugin repository:

    wp plugin install tagpurge --activate
    

    Or install via Plugins → Add New and search for “RelayWP”.

  2. Go to Settings → RelayWP in your WordPress admin.

  3. 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)
  4. 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.