WordPress Plugin
Official NordicCDN plugin for WordPress and WooCommerce.
Features
- Automatic cache purging on content changes
- Manual purge from admin bar and dashboard
- WooCommerce integration (stock, products, cart)
- ESI support for nonces and dynamic content
- Cache statistics in dashboard
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Active NordicCDN Site Accelerator
Installation
Step 1: Download
Download the plugin from your NordicCDN dashboard or contact support.
Step 2: Install
- Go to Plugins > Add New in WordPress admin
- Click Upload Plugin
- Select the downloaded ZIP file
- Click Install Now and then Activate
Step 3: Configure
- Go to Settings > NordicCDN Cache
- Enter your API Key (from accelerator API tab)
- Click Validate Connection
- Save settings
Getting Your API Key
- Log in to NordicCDN dashboard
- Go to your Site Accelerator
- Click the API tab
- Click Generate API Key
- Copy the key immediately (shown only once)
Automatic Cache Purging
The plugin automatically purges cache when:
| Action |
Cache Purged |
| Post/Page published |
Post URL + archives + homepage |
| Post/Page updated |
Post URL + archives |
| Post/Page deleted |
Archives + homepage |
| Comment approved |
Post URL |
| Menu updated |
Full site |
| Theme changed |
Full site |
| Widget updated |
Full site |
WooCommerce
When WooCommerce is active:
| Action |
Cache Purged |
| Product updated |
Product + category pages |
| Stock changed |
Product + category pages |
| Product deleted |
Category pages |
| Order completed |
Product pages (stock update) |
Manual Purging
Admin Bar
A Purge Cache button appears in the WordPress admin bar for administrators. Click to purge the entire site cache.
Single Page Purge
When editing a post or page, use the Purge This Page button in the publish meta box.
Settings Page
Go to Settings > NordicCDN Cache and click Purge All Cache.
ESI (Edge Side Includes)
ESI allows caching pages while keeping dynamic elements fresh.
Enabling ESI
- In NordicCDN dashboard, enable ESI on your accelerator
- In WordPress, go to Settings > NordicCDN Cache
- Enable ESI Support
Supported ESI Blocks
Nonces:
WordPress security tokens are generated dynamically, allowing forms to work on cached pages.
Cart Widget (WooCommerce):
Cart count updates in real-time without breaking page cache.
Theme Integration
For custom themes, use the ESI functions:
// Replace standard nonce field
<?php echo NordicCDN_ESI::nonce_field('my_action'); ?>
// ESI cart widget
<?php echo NordicCDN_ESI::cart_widget(); ?>
Settings Reference
| Setting |
Default |
Description |
| API Key |
- |
Your accelerator API key |
| Auto-Purge |
On |
Purge on content changes |
| Purge Homepage |
On |
Include homepage in purges |
| ESI Support |
Off |
Enable Edge Side Includes |
| Debug Mode |
Off |
Log API requests |
Troubleshooting
"Connection Failed"
- Verify the API key is correct
- Check that your accelerator is active
- Ensure your server can reach nordiccdn.com
Cache Not Purging
- Check auto-purge is enabled
- Verify WordPress cron is working
- Look for errors in Settings > NordicCDN Cache
WooCommerce Cart Issues
- Enable ESI for dynamic cart widgets
- Verify WooCommerce cookies are in bypass list
- Check that admin-ajax.php is not cached
Nonce Errors on Forms
- Enable ESI support in plugin settings
- Verify ESI is enabled on your accelerator
- Clear all caches and test again
Uninstalling
- Go to Plugins > Installed Plugins
- Deactivate NordicCDN Cache
- Click Delete
All settings are removed on deletion.