PrestaShop Module

Official NordicCDN module for PrestaShop e-commerce.


Features

  • Automatic cache purging on content changes
  • Manual purge from back office
  • Multi-shop support
  • Product, category, and CMS page purging
  • Cache statistics display

Requirements

  • PrestaShop 1.7.x or 8.x
  • PHP 7.4 or higher
  • Active NordicCDN Site Accelerator

Installation

Step 1: Download

Download the module from your NordicCDN dashboard or contact support.

Step 2: Install

Via Back Office:

  1. Go to Modules > Module Manager
  2. Click Upload a module
  3. Select the downloaded ZIP file
  4. Wait for installation to complete

Via FTP:

  1. Extract the ZIP file
  2. Upload the nordiccdncache folder to /modules/
  3. Go to Module Manager and install

Step 3: Configure

  1. Click Configure on the module
  2. Enter your API Key
  3. Click Test 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 module automatically purges cache when:

Action Cache Purged
Product created Product page
Product updated Product + category pages
Product deleted Category pages
Category updated Category page
CMS page updated CMS page
Order completed Product pages (stock)
Cache cleared Full CDN cache

Multi-Shop Support

Same Accelerator for All Shops

Configure the module from "All Shops" context to share settings.

Different Accelerators per Shop

  1. Select a specific shop in the back office header
  2. Configure with that shop's API key
  3. Repeat for each shop

Each shop maintains independent:

  • API key
  • Auto-purge settings
  • Statistics

Manual Purging

From Back Office

Go to module configuration and click Purge All Cache.

Quick Purge

Use the purge button in the module's dashboard widget.


Settings Reference

Setting Default Description
API Key - Your accelerator API key
Enable Auto-Purge On Purge on content changes
Purge on Product Change On Purge when products modified
Purge on Category Change On Purge when categories modified
Purge on CMS Change On Purge when CMS pages modified
Purge on Order On Purge products on order (stock)
Debug Mode Off Log API requests

Troubleshooting

"Invalid API Key"

  • Verify the API key is correct
  • Check your accelerator is active
  • Try regenerating the key

Cache Not Purging

  • Verify auto-purge is enabled
  • Check module is active
  • Look for errors in PrestaShop logs

Multi-Shop Issues

  • Ensure correct shop context is selected
  • Verify each shop has its own API key configured
  • Check shop-specific accelerator settings

Hooks Used

The module registers these PrestaShop hooks:

actionProductAdd
actionProductUpdate
actionProductDelete
actionCategoryAdd
actionCategoryUpdate
actionCategoryDelete
actionCmsPageFormSave
actionObjectCmsDeleteAfter
actionOrderStatusPostUpdate
actionClearCache
actionClearCompileCache

Uninstalling

  1. Go to Modules > Module Manager
  2. Find NordicCDN Cache
  3. Click the dropdown and select Uninstall

All configuration is removed on uninstall.