Cloudflare APO and CDN Integration

Updated on 10. 2. 2026

Cloudflare APO and CDN Integration

ZiziCache supports Cloudflare in two distinct ways: (1) coordination with the official Cloudflare APO plugin, and (2) its own Cloudflare API integration when Cloudflare is selected as the CDN type in ZiziCache.

1) Cloudflare APO plugin coordination

  • Active only when the official Cloudflare WordPress plugin is installed and APO is enabled.
  • When ZiziCache purges cache (URLs, pages, or everything), it triggers Cloudflare APO purge via the Cloudflare plugin API.
  • Requires an admin user (manage_options).

This integration only coordinates purge calls. It does not change APO settings, configure Workers, or manage cache rules.

2) Built‑in Cloudflare CDN integration

  • Active when CDN type is set to cloudflare and Cloudflare integration is enabled in ZiziCache.
  • Requires a Cloudflare API token and Zone ID.
  • Hooks into ZiziCache purge actions to purge Cloudflare cache.
  • Can create Edge Cache Rules when edge caching is enabled in ZiziCache.

If the official Cloudflare plugin or Cloudflare APO is detected, ZiziCache disables its own Cloudflare API integration to avoid duplicate API calls.

How to configure

  • Go to ZiziCache → CDN.
  • Select Cloudflare as the CDN type.
  • Enable Cloudflare integration and enter API Token + Zone ID.
  • Optional: enable Edge Caching if you want ZiziCache to manage edge cache rules.

How to verify

  1. Run a purge in ZiziCache (Admin bar → Clear All Cache or wp zizi-cache purge-everything).
  2. Check Cloudflare cache status in the Cloudflare dashboard (or the ZiziCache log if debug logging is enabled).
  3. If the Cloudflare plugin with APO is active, confirm ZiziCache does not enable its own Cloudflare rules (conflict notice appears in admin).

Disable the integration (optional)

add_filter('zizi_cache_disabled_integrations', function($integrations) {
    $integrations[] = ZiziCachePluginsIntegrationsAPO::class;
    return $integrations;
});
What are your feelings