WordPress

Thijs de Zoete

Before integrating with WordPress, you’ll need an alias – either use the one we provided you with in the control panel (<label>.cdn.warpcache.net), or the one you setup via your DNS provider (e.g. cdn.example.com).

 

Step 1: Installing the W3 Total Cache plugin

We’ll need to download and install the W3 Total Cache plugin.

  1. Sign in to your WordPress administration panel.
  2. In the menu on the left, select Plugins and click Add New.
  3. Top right, search for W3 Total Cache.
  4. Click the Install Now button.
  5. Once the installation is complete, press Activate.

The plugin can be used for free.

 

Step 2: Activate the plugin and set up CDNs

After activation, a new menu item will have been added on the left called Performance.

  1. Hit Performance and navigate to General Settings.
  2. Scroll down to the bottom of the page, to the CDN settings.
  3. Check the Enable CDN checkbox.
  4. Select Generic Mirror in the CDN Type drop-down menu.
  5. You should now see a red error box on the top of the page saying: ‘A configuration issue prevents CDN from working. The “Replace default hostname with” field cannot be empty. Specify it here.
  6. Click on Specify it here to configure host name. You will be directed to the CDN menu item under Performance.

Error

 

Step 3: Configuration

If you completed the quick-start guide, we have provided you with an alias (e.g. <label>.cdn.warpcache.net). Alternatively, you can use your own alias (e.g. cdn.example.net), retrieved via your hosting provider. To set up your own alias, follow this guide on setting up your DNS.

In this example we’ll use example.cdn.warpcache.nl. The alias can be found by clicking on your Vhost in the Warpcache control panel, under Vhost overview.

  1. Copy your CNAME from the Warpcache control panel, or use the custom alias you set up.

Vhost overview

  1. Switch back to WordPress and click the Performance tab, and then CDN.
  2. Scroll down to Configuration and paste your CNAME or alias in the field next to “Replace site’s hostname with:”.
  3. Click the Test Mirror button. If all went well you should get a green message saying that the test passed.

Test-mirror

  1. Hit Save all settings.

In case the test does not pass, try waiting a few minutes before testing again. If you just created your own alias it might take some time before the DNS has propagated. View our tips on testing your Vhost here.

From now on, WordPress will use Warpcache to serve out all the content on your website.