Skip to content

v1.5.1

Latest

Choose a tag to compare

@eminos eminos released this 16 Nov 08:21
3a6d488

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:

'global_variables_saved' => true,
'global_variables_deleted' => 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: v1.5.0...v1.5.1