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

  1. Go to Plugins > Add New in WordPress admin
  2. Click Upload Plugin
  3. Select the downloaded ZIP file
  4. Click Install Now and then Activate

Step 3: Configure

  1. Go to Settings > NordicCDN Cache
  2. Enter your API Key (from accelerator API tab)
  3. Click Validate Connection
  4. Save settings

Getting Your API Key

  1. Log in to NordicCDN dashboard
  2. Go to your Site Accelerator
  3. Click the API tab
  4. Click Generate API Key
  5. 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

  1. In NordicCDN dashboard, enable ESI on your accelerator
  2. In WordPress, go to Settings > NordicCDN Cache
  3. 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

  1. Go to Plugins > Installed Plugins
  2. Deactivate NordicCDN Cache
  3. Click Delete

All settings are removed on deletion.