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:
- Go to Modules > Module Manager
- Click Upload a module
- Select the downloaded ZIP file
- Wait for installation to complete
Via FTP:
- Extract the ZIP file
- Upload the
nordiccdncache folder to /modules/
- Go to Module Manager and install
Step 3: Configure
- Click Configure on the module
- Enter your API Key
- Click Test 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 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
- Select a specific shop in the back office header
- Configure with that shop's API key
- 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
- Go to Modules > Module Manager
- Find NordicCDN Cache
- Click the dropdown and select Uninstall
All configuration is removed on uninstall.