Cloudflare API features in Prestashop:
- Clear Cloudflare Cache in the Prestashop admin
- Update settings: Auto Minify (CSS, JS, HTML)
- Prestashop >= 1.7.6.0
- PHP >= 7.2.0
Download the pixel_cloudflare.zip file from the last release assets.
Go to the admin module catalog section and click Upload a module. Select the downloaded zip file.
Move the downloaded file in the Prestashop modules directory and unzip the archive. Go to the admin module catalog section and search for "Cloudflare".
From the module manager, find the module and click on configure.
Field | Description | Required |
---|---|---|
Zone ID | The website Zone ID | Y |
Authentication mode | The authentication mode: API Token or Global API key | Y |
API Token * | A valid token from your Cloudflare Account with permission on "Cache Purge" for "Zone" | Y |
Global API Key | The Cloudflare Global API key | Y |
Account Email | Email address associated with your Cloudflare account | Y |
Automatically minify | Reduce the file size of source code on your website | N |
* For an API Token authentication (more secure), create a new custom API token with permissions on:
- Zone - Cache Purge - Purge
- Zone - Zone Settings - Edit
- Zone - Zone Settings - Read
In admin, go to Advanced settings > Performance
- Clear only Cloudflare cache with the button: Clear Cloudflare Cache
- Clear prestashop and Cloudflare cache with the button: Clear cache