https://github.com/pixel-open/prestashop-cloudflare
Cloudflare API features in Prestashop
https://github.com/pixel-open/prestashop-cloudflare
Last synced: 11 months ago
JSON representation
Cloudflare API features in Prestashop
- Host: GitHub
- URL: https://github.com/pixel-open/prestashop-cloudflare
- Owner: Pixel-Open
- License: mit
- Created: 2023-02-17T12:59:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T13:36:40.000Z (over 2 years ago)
- Last Synced: 2024-02-02T14:51:21.456Z (over 2 years ago)
- Language: PHP
- Size: 51.8 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Prestashop Cloudflare
[](https://php.net/)
[](https://www.prestashop.com)
[](https://github.com/Pixel-Open/prestashop-cloudflare/releases)
## Presentation
Cloudflare API features in Prestashop:
- Clear Cloudflare Cache in the Prestashop admin

## Requirements
- Prestashop >= 1.7.6.0
- PHP >= 7.2.0
## Installation
Download the **pixel_cloudflare.zip** file from the [last release](https://github.com/Pixel-Open/prestashop-cloudflare/releases/latest) assets.
### Admin
Go to the admin module catalog section and click **Upload a module**. Select the downloaded zip file.
### Manually
Move the downloaded file in the Prestashop **modules** directory and unzip the archive. Go to the admin module catalog section and search for "Cloudflare".
## Configuration
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 |
\* 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

## Clear the cache
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**