Connecting BunnyCDN to RunCache allows your WordPress website to deliver static files such as images, stylesheets, and scripts through Bunny’s global network. This setup reduces the load on your RunCloud server and improves page load times for your visitors worldwide.

In this guide, we will walk you through creating a pull zone in Bunny.net, finding your API key, and connecting it to the RunCache plugin inside WordPress.

Prerequisites

Before starting, ensure that you have:

  • An active Bunny.net account.
  • Administrator access to your WordPress dashboard.
  • The RunCache plugin installed and activated on your WordPress site.

Step 1: Create a Pull Zone in Bunny.net

A pull zone tells BunnyCDN where to fetch your website files and how to cache them across its global edge network.

  1. Log in to your Bunny.net account.
  2. In the left navigation menu, navigate to CDN > Add Pull Zone.
add pull zone
  1. In the “Pull Zone name” field, type a unique name using only lowercase letters and numbers. Bunny uses this name to generate your CDN hostname (for example, myruncloudwebsite.b-cdn.net).
add zone name
  1. In the “Origin URL” field, enter the full URL of your WordPress website, including https:// (for example, https://example.com). Bunny uses this address to fetch your assets.
Add URL
  1. Leave the “Host header” field empty unless your setup requires a custom host header. Bunny extracts the hostname automatically from your origin URL.
  2. Under “Pricing zones”, choose the geographic regions where you want your files delivered. Leaving all regions selected provides the best global performance.
  3. Under “Protect your Pull Zone with Bunny Shield”, choose whether to enable security protection to block malicious bots and DDoS attacks.
  4. Click Add Pull Zone at the bottom of the screen to create your zone.
Add CDN config

Step 2: Retrieve Your Bunny.net API Key

RunCache requires an API key to communicate with Bunny.net and retrieve your pull zones automatically.

  1. In your Bunny.net dashboard, click your profile icon in the top-right corner.
  2. Navigate to API Key.
  1. Locate your account API key and click Copy to save the API key to your clipboard.
Copy

Step 3: Connect BunnyCDN to RunCache in WordPress

Now that your pull zone is ready and you have your API key, configure the RunCache plugin inside WordPress.

  1. Log in to your WordPress dashboard as an administrator.
  2. Navigate to RunCache > Dashboard > Assets CDN.
  3. Click the toggle switch next to “BunnyCDN” to enable the integration.
Bunny CDN enable
  1. Paste your Bunny.net API key into the “API Key” field. RunCache will connect to Bunny.net and load available pull zones and automatically configure it.
pull zone config
  1. In the “Allowed File Extensions” field, review the static file extensions you want the CDN to serve. RunCache provides common file extensions by default, but you can add or remove extensions separated by commas.
  2. Click Save Settings to apply your changes.

Step 4: Verify That the CDN Is Working

Once you save your settings, RunCache automatically rewrites the URLs of your static assets to point to your BunnyCDN pull zone hostname.

  1. Open a new browser window in incognito or private browsing mode.
  2. Visit any page on your WordPress website.
  3. Right-click anywhere on the page and select “View Page Source” or “Inspect”.
CDN source code
  1. Confirm that the URLs for these files start with your BunnyCDN hostname (for example, https://myruncloudwebsite.b-cdn.net/wp-content/...) instead of your primary domain name.

If your asset URLs show your BunnyCDN hostname, your integration is complete, and your static content is now loading through BunnyCDN.