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. Since v1.1.0 it can also serve your static assets through the CDN without any DNS change.
โฌ Download the WordPress plugin (wordpress.zip)
Version 1.1.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:
| Event | WordPress hooks |
|---|---|
| Publishing / updating / unpublishing / trashing a post or page | transition_post_status, pre_post_update |
| A comment being posted or approved | comment_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โ
- In your WordPress admin, go to Plugins โ Add New โ Upload Plugin.
- Choose the
wordpress.zipyou downloaded above and click Install Now. - Click Activate.
- Open Settings โ Paradarum CDN to configure it.
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:
| Setting | What to enter |
|---|---|
| API key | An account API key (pdm_โฆ). Create one in the panel โ see Manage API keys. Stored encrypted (AESโ256โCBC) in the database. |
| Property ID | The numeric ID of the property that serves this site (visible in the panel when you open the property). |
| Auto purge | On by default. Turn off to disable automatic purging and only purge manually / via WPโCLI. |
| Strategy | hybrid (default), surgical, or broad โ how aggressively related routes are purged. |
| Import threshold | Default 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 toggles | Taxonomies, author archives, date archives, feeds, sitemap โ each can be excluded from relatedโroute purges. |
| Serve static assets through CDN | Off by default. Rewrites wp-content/wp-includes asset URLs to your CDN hostname โ see below. (v1.1.0+) |
| CDN hostname | The hostname assets are served from when the mode above is on โ your property's your-property.prdrm.net system hostname, or a custom hostname that is Active on the property. (v1.1.0+) |
The API base URL is fixed to https://api.paradarum.com.
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.
Serve static assets through CDNโ
Available since v1.1.0.
This mode offloads your static files to Paradarum without moving the whole site behind
the CDN. When enabled, the plugin rewrites the URLs of assets under wp-content/ and
wp-includes/ in your rendered pages so browsers fetch them from your CDN hostname
instead of your web host:
Before: https://www.example.com/wp-content/themes/mytheme/style.css
After: https://my-site.prdrm.net/wp-content/themes/mytheme/style.css
The CDN fetches each asset once from your origin (your WordPress site), caches it at the edge, and serves it to visitors from the nearest PoP. Your HTML pages keep being served directly by your host.
Why it is usefulโ
- No DNS changes required. Because assets are served from the property's
*.prdrm.netsystem hostname, this works the moment your property exists โ you never have to touch your domain's DNS or connect a domain at all. It is the fastest way to get real CDN benefit on a site you cannot (or don't want to) repoint yet. - Immediate wins. Themes, plugin assets, uploaded images and core scripts โ typically the bulk of page weight โ get edge caching, compression and the property's static-assets cache rule.
Enable itโ
- Make sure the Paradarum property's origin points at this WordPress site, so the CDN can fetch the assets. (If you created the property with the wizard, it already does.)
- In Settings โ Paradarum CDN, turn on Serve static assets through CDN.
- The CDN hostname field defaults to your property's system hostname
(
your-property.prdrm.net). If your domain is already connected to the property you can use a custom hostname instead โ it must be Active (green) on the property. - Save. Reload a page on your site and check the source: asset URLs under
wp-content/wp-includesnow point at the CDN hostname.
Limitsโ
The mode rewrites asset URLs under wp-content/ (themes, plugins, uploads) and
wp-includes/ (core scripts and styles) only. HTML documents, wp-admin, REST/AJAX
endpoints, and any URL outside those two paths are untouched and keep being served by your
host. To put the whole site behind the CDN, connect your domain instead โ see
Connect your domain.
Purging keeps working as before: when the plugin purges a route, asset variants cached under the CDN hostname are covered by the same property purge.
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 statusshowsReady: yes(it needs a valid API key and a Property ID greater than 0). 403responses: the property is disabled or suspended โ see purge behavior & limits.401responses: the API key is invalid or revoked โ generate a new one in Manage API keys.