Cloudflare Cache

Automatically purge your Cloudflare cache when content changes in Statamic.

1.5.1

November 16th, 2026

Fix Cloudflare cache purging when editing global values in the Statamic 6 control panel.

  • Handle GlobalVariablesSaved and GlobalVariablesDeleted using the existing full-purge fallback.
  • Preserve Statamic 5 global-set handling without duplicate purges.
  • Add save-event regression tests and a CI matrix covering Statamic 5 and 6.

If you have already published config/cloudflare-cache.php, add these keys to its purge_on array:

#292D3E; --theme-selection-background: #00000080;">
#89DDFF;">'global_variables_saved#89DDFF;">' #89DDFF;">=> #89DDFF;">true,
#89DDFF;">'global_variables_deleted#89DDFF;">' #89DDFF;">=> #89DDFF;">true,

purge_everything_fallback must be enabled for these events. Rebuild Laravel's configuration cache after changing a cached configuration. The optional Statamic static-cache invalidation mode continues to use its existing event path.

Thanks to @tommulroy for the fix in #7.

Full changelog: https://github.com/eminos/statamic-cloudflare-cache/compare/v1.5.0...v1.5.1

1.5.0

February 20th, 2026

What's Changed

  • Add optional Statamic static-cache invalidation integration for targeted Cloudflare purges by @Copilot in https://github.com/eminos/statamic-cloudflare-cache/pull/6

New Contributors

  • @Copilot made their first contribution in https://github.com/eminos/statamic-cloudflare-cache/pull/6

Full Changelog: https://github.com/eminos/statamic-cloudflare-cache/compare/v1.4.0...v1.5.0

1.4.0

February 20th, 2026

What's Changed

  • Statamic 6 support
  • Feature/cache purged event by @sheadawson in https://github.com/eminos/statamic-cloudflare-cache/pull/5

New Contributors

  • @sheadawson made their first contribution in https://github.com/eminos/statamic-cloudflare-cache/pull/5

Full Changelog: https://github.com/eminos/statamic-cloudflare-cache/compare/v1.3.0...v1.4.0

1.3.0

January 8th, 2026

  • Add support for purging the cache when updating (saving, deleting) a Global Set.
    • Make sure to update the config file with the new purge_on events.

Full Changelog: https://github.com/eminos/statamic-cloudflare-cache/compare/v1.2.0...v1.3.0

1.2.0

October 1st, 2025

  • Add purge on events Nav and Collection Tree Saved (reordering)

Full Changelog: https://github.com/eminos/statamic-cloudflare-cache/compare/v1.1.0...v1.2.0

1.1.0

August 20th, 2025

What's Changed

  • Allow multisite with multiple domains by @mthorsdal in https://github.com/eminos/statamic-cloudflare-cache/pull/3

New Contributors

  • @mthorsdal made their first contribution in https://github.com/eminos/statamic-cloudflare-cache/pull/3

Full Changelog: https://github.com/eminos/statamic-cloudflare-cache/compare/v1.0.0...v1.1.0

1.0.0

April 11th, 2025

Initial release 🥳