Native Cloudflare and BunnyCDN integration with automatic cache purges, manual purge button, and test-connection check. Custom CDN URL works with any other provider for static-asset URL rewriting.
Get ForgeCache PremiumCloudflare and BunnyCDN get full API integration — automatic cache purges, test connection, manual purge button. Every other CDN works through the custom URL rewriter.
Full API integration. Scoped API token + Zone ID. Automatic purge on every cache clear.
Full API integration. Account API key + Pull Zone ID. Automatic purge on every cache clear.
URL rewriter. Static assets served from your KeyCDN pull zone.
URL rewriter. Any CDN that mirrors your origin works — just set your CDN hostname.
URL rewriter accepts any hostname. If your CDN mirrors your origin, ForgeCache rewrites your asset URLs through it.
A CDN dramatically improves load times for visitors around the world.
Your assets are cached on servers around the world. Visitors download from the nearest location, eliminating long-distance latency that slows down your site.
Less physical distance means faster delivery. A visitor in Tokyo gets your CSS from Japan, not your server in Texas. The difference is measured in hundreds of milliseconds.
Your server handles dynamic content while the CDN serves static assets. This reduces server load significantly, especially during traffic spikes or viral moments.
CDNs absorb malicious traffic before it reaches your server. Their massive networks can handle attacks that would overwhelm any single origin server.
Three setup paths in ForgeCache → Settings → Advanced → CDN Integration. Pick the one that matches your provider.
Create a scoped API token at dash.cloudflare.com/profile/api-tokens with the "Zone → Cache Purge: Purge" permission on your zone. Paste the token + Zone ID into ForgeCache, hit Test Connection. From then on every save triggers an automatic Cloudflare purge.
Grab the account API key from dash.bunny.net → Account → API and the numeric Pull Zone ID from your pull zone's settings URL. Paste both into ForgeCache, hit Test Connection. Same automatic purge behavior on every save.
Set the Custom CDN URL field to your CDN hostname (e.g. https://your-site.b-cdn.net or your KeyCDN / CloudFront / StackPath / custom domain). ForgeCache rewrites every static-asset URL through that hostname. No API integration — just URL rewriting.
Concrete features built into the Cloudflare and BunnyCDN API integrations.
Save a post, switch a theme, or click Clear Cache in the WP admin bar — ForgeCache fires a matching purge against your configured provider. Per-post saves purge the post URL + homepage; global Clear Cache purges the whole zone.
Verify your token or API key works before turning auto-purge on. Returns a clear pass/fail with the provider's own error message when something's wrong (wrong permission, expired key, mistyped Zone ID).
Sometimes you just want to flush everything. One click in Settings → CDN → "Purge CDN cache now" wipes the entire Cloudflare zone or BunnyCDN pull zone.
If you save 50 posts in a bulk action, ForgeCache won't fire 50 separate purge calls for the homepage. URLs are deduplicated within the request — the homepage gets purged once, each post URL once.
ForgeCache won't accept Cloudflare global API keys. Scoped tokens with the minimum "Zone → Cache Purge: Purge" permission are the only auth path. Less blast radius if a token leaks.
Independent of which provider you pick — set a Custom CDN URL and ForgeCache rewrites every image, CSS, JS, and font URL through your CDN hostname. Pair it with the Cloudflare or BunnyCDN API for both URL rewriting AND auto-purge.
Cloudflare and BunnyCDN. Both get Test Connection + Purge Now buttons and fire automatic cache purges every time ForgeCache clears its own cache (post save, theme switch, manual Clear All). Every other CDN works through the Custom CDN URL field — it sets up URL rewriting, but ForgeCache won't talk to that CDN's API for purges. If you want auto-purge on those, your CDN provider's own plugin or webhook usually fills the gap.
One — "Zone → Cache Purge: Purge" on the zone for the site you're integrating. Create it at dash.cloudflare.com/profile/api-tokens with the "Custom token" option, scope it to the single zone, and grant only that single permission. ForgeCache does NOT accept Cloudflare global API keys (those grant full account access; if one leaks the blast radius is enormous). Scoped tokens with the minimum purge permission are the only auth path.
Yes, and the auto-purge is smart about it. If you save 50 posts in one bulk action, ForgeCache deduplicates the URLs that need purging within that request — the homepage gets purged once (not 50 times), and each unique post URL gets purged once. Cloudflare's purge_cache API caps at 30 URLs per request, so a 50-post bulk save goes out as two batched requests, not 50 individual ones.
The Custom CDN URL field. Set your CDN hostname (e.g. https://your-site.b-cdn.net or the CloudFront / KeyCDN / StackPath domain) and ForgeCache rewrites every static-asset URL (images, CSS, JS, fonts) through it. You don't get automatic cache purge — your CDN provider needs to be told to refresh on its own (most have webhooks or stale-while-revalidate built in). Practically: KeyCDN, CloudFront, StackPath, custom Cloudflare Spectrum hostnames — all work.
No — the CDN integration sits on top of ForgeCache's own page caching, not instead of it. ForgeCache caches your rendered HTML to disk (or to the pre-WordPress drop-in for sub-100ms responses); the CDN integration handles the static-asset side — images, CSS, JS, fonts. The two layers work together. A first-time visitor hits the CDN for assets and your origin for the cached HTML; a returning visitor inside the same TTL gets both from the edge.
No — Cloudflare's free plan works end-to-end with ForgeCache. The free plan includes the cache purge API, which is what ForgeCache needs. The 1,000-purge-calls-per-zone-per-24-hours rate limit (also on the free plan) is more than enough for typical editorial activity — even a busy site with 100 post saves per day stays well under.
Get ForgeCache Premium and serve assets worldwide from edge locations near your visitors.
Get ForgeCache Premium