Skip to content

v2.4.1: Instant Cloudflare Zone Purge & Synchronous Revalidation

Choose a tag to compare

@iamgrisma iamgrisma released this 31 Oct 12:54
· 13 commits to main since this release

What's Changed in AstroPress v2.4.1

  • Automatic Runtime Zone ID Resolution: Invalidation pipeline now dynamically derives and resolves the Cloudflare Zone ID directly from the API token if not already persisted in wp_options, guaranteeing edge cache purging triggers immediately without manual wizard steps.
  • Synchronous Webhook Dispatch: Webhook calls to Astro /api/revalidate now execute synchronously with a 5-second timeout, preventing LiteSpeed from aborting non-blocking cURL sockets during PHP shutdown.
  • Default Shared Secret Parity: Defaults unconfigured revalidate secrets to astropress_revalidate_secret matching Astro frontend accepted tokens.
  • PHP 7.4 Compatibility: Replaced all str_ends_with() calls with PHP 7.4 substr checks.