Skip to main content

WordPress plugin

Paradarum CDN Purge is the official WordPress plugin. It automatically invalidates the affected CDN routes through the purge API whenever you publish or edit content โ€” so visitors never see a stale page or listing.

โฌ‡ Download the WordPress plugin (wordpress.zip)

Version 1.0.0 ยท Requires WordPress 5.6+ and PHP 7.4+ ยท GPLโ€‘2.0โ€‘orโ€‘later

What it purgesโ€‹

When content changes, the plugin doesn't just purge the single URL โ€” it purges every route that listing could appear on. It hooks into:

EventWordPress hooks
Publishing / updating / unpublishing / trashing a post or pagetransition_post_status, pre_post_update
A comment being posted or approvedcomment_post, transition_comment_status
Creating, editing or deleting a term (category, tag, taxonomy)created_term, edited_term, delete_term

For a single post it can purge the post URL plus the home page, the relevant category/tag/taxonomy archives, author and date archives, feeds and the sitemap. Each of these is configurable (see Configuration).

Installโ€‹

  1. In your WordPress admin, go to Plugins โ†’ Add New โ†’ Upload Plugin.
  2. Choose the wordpress.zip you downloaded above and click Install Now.
  3. Click Activate.
  4. Open Settings โ†’ Paradarum CDN to configure it.
Folder name

The archive installs into a paradarum-cdn-purge/ plugin folder. If you extract it manually, upload that folder to wp-content/plugins/.

Configurationโ€‹

Open Settings โ†’ Paradarum CDN and fill in:

SettingWhat to enter
API keyAn account API key (pdm_โ€ฆ). Create one in the panel โ€” see Manage API keys. Stored encrypted (AESโ€‘256โ€‘CBC) in the database.
Property IDThe numeric ID of the property that serves this site (visible in the panel when you open the property).
Auto purgeOn by default. Turn off to disable automatic purging and only purge manually / via WPโ€‘CLI.
Strategyhybrid (default), surgical, or broad โ€” how aggressively related routes are purged.
Import thresholdDefault 30. If a single change would purge more than this many paths, the plugin collapses it into one fullโ€‘property purge (set 0 to never collapse). Protects against bulk imports flooding the API.
Include togglesTaxonomies, author archives, date archives, feeds, sitemap โ€” each can be excluded from relatedโ€‘route purges.

The API base URL is fixed to https://api.paradarum.com.

Store the API key in wp-config.php (recommended)

For production, define the key as a constant so it never lives in the database and isn't editable from the UI:

// wp-config.php
define( 'PARADARUM_API_KEY', 'pdm_your_key_here' );
// Optional: override the API base URL (e.g. staging).
// define( 'PARADARUM_API_URL', 'https://api.paradarum.com' );

When PARADARUM_API_KEY is defined it takes precedence and the key field in the UI is locked.

WPโ€‘CLIโ€‹

The plugin registers a paradarum command:

# Purge the entire property cache
wp paradarum purge --all

# Purge a single URL or path
wp paradarum purge --url=https://example.com/blog/

# Purge everything affected by a post
wp paradarum purge --post=42

# Show configuration / connection status
wp paradarum status

How it relates to cache rulesโ€‹

The plugin handles invalidation (purging when content changes). It pairs naturally with the WordPress cache rules, which control what gets cached and for how long. Apply the rules (or the oneโ€‘click CMS preset) for caching, then install this plugin so the cache stays fresh automatically.

Troubleshootingโ€‹

  • Nothing is purging: confirm wp paradarum status shows Ready: yes (it needs a valid API key and a Property ID greater than 0).
  • 403 responses: the property is disabled or suspended โ€” see purge behavior & limits.
  • 401 responses: the API key is invalid or revoked โ€” generate a new one in Manage API keys.