Skip to content

Feature/hostname-specific purge + translation#6

Open
drhide16 wants to merge 3 commits intoPixel-Open:masterfrom
drhide16:feature/hostname-purge
Open

Feature/hostname-specific purge + translation#6
drhide16 wants to merge 3 commits intoPixel-Open:masterfrom
drhide16:feature/hostname-purge

Conversation

@drhide16
Copy link
Copy Markdown

@drhide16 drhide16 commented Dec 29, 2025

Summary

This PR adds two new features to the Cloudflare module:

Hostname-specific cache purge

  • New optional configuration field Hostname to purge
  • When configured, only the specified hostname cache is purged instead of the entire zone
  • Fallback behavior: if the field is left empty, full cache purge is performed (backward compatible)

Translations

  • French (fr-FR)
  • Spanish (es-ES)
  • German (de-DE)
  • Italian (it-IT)

Changes

File Description
src/Helper/Config.php Add getHostname() method
src/Model/Api.php Modify clearCache() to use hosts[] API parameter
pixel_cloudflare.php Add hostname config field, bump version to 1.3.6
CHANGELOG.md Add 1.3.5 and 1.3.6 entries
README.md Document new feature
translations/*.xlf Add XLIFF translation files

Test plan

  • Install module and configure hostname → verify cache purge targets only that hostname
  • Leave hostname empty → verify full cache purge (purge_everything)
  • Switch PrestaShop language to French → verify translations appear

- Add CLOUDFLARE_HOSTNAME configuration field
- Modify clearCache() to use hosts[] instead of purge_everything when hostname is set
- Backward compatible: empty hostname = full cache purge
- Add French translation (fr-FR)
- Add Spanish translation (es-ES)
- Add German translation (de-DE)
- Add Italian translation (it-IT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant