WordPress

Setting up WordPress with W3-Total-Cache

Step #1 – Install W3TC to your WordPress Blog:

  • Log into your WordPress administration and install the plugin “W3 Total Cache”
  • Go to the plugin administration section, and click Activate next to “W3 Total Cache”

Step #2 – Creating a Pull Zone for Your Site:

Step #3 – Basic Setup of W3TC with our CDN:

  • From your WordPress Administrator Dashboard, scroll down to the “Performance” Section, click on the Arrow next to it to expand it, or click on the link to open W3TC’s main configuration window. Alternatively, in your WordPress plugin administration, click on Settings next the “W3 Total Cache” plugin.
  • Scroll down to the “Content Delivery Network” Section.
    • Tick the “Enable” Checkbox next to “CDN”.
    • Select “MaxCDN / NetDNA” from the “CDN Type” drop down.
    • Click “Save Changes”
      You will then get a warning message about “Replace site’s hostname with” Ignore this message
  • Scroll up again, and click on “Contend Delivery Network Settings” in the horizontal link menu in the top area of W3TC.
    • Scroll down to the input, “Replace site’s hostname with:” and enter your zone’s temporary URL (that we provided you with at the end of Step 2) without the ‘http://’ or post slash. If you have set up a custom domain for your temporary URL, you may use this instead
    • Click “Save Changes” at the bottom of the screen; all other fields are not required for basic setup.
  • One last change
    • Select the ‘Browser Cache Settings’ drop down from the Viewing: menu
    • Change all 3 options for ‘Cache Control policy’ to ‘cache (“public”)’

Your blog is now officially using the CDN. To verify, go to your blog and view source by right clicking on the page. If you see your normal URLS replaced by the temporary URL or custom domain then you know the CDN installation was a success.

Optional Step #4 – Additional Setup of W3TC with our CDN:

These and all other functionality beyond the basic setup is not necessary. You may choose how to configure the remaining settings according to your preference and needs.

  • Setup API Functionality
    • You may connect W3 Total Cache to your zones through our API, allowing you to do things like purge your CDN cache directly within your WordPress administration
    • To do this, create an API key for your account
    • Then, while in your W3TC settings, select “Content Delivery Network Settings” from the “Viewing:” drop-down
    • Enter the “API Id” & “API Key” that you just created with us into your configuration
    • Click “Save Changes” and you are now able to use the API features from within W3TC
  • Custom File List
    • W3TC may not automatically identify all of the files that you want served by the CDN. To change this, simply add these files or directories to the “Custom File List” text area (one file/directory per line)
    • Some files that are commonly ignored are those within your wp-content/uploads directory. To serve these files add this line to the text area: “wp-content/uploads/*”
  • Rejected File List
    • Similarly, there may be certain files that are being served by the CDN that you would like to serve locally. To change this, simply add these files or directories to the “Rejected files” text area (one file/directory per line)

For more information about how to setup W3 Total Cache, please check out the in-depth How to Install and Setup W3 Total Cache for Beginners by WPBeginner

 

In some cases, enabling Minify for CSS/JS or Database Caching will result in errors and your website breaking. It might be a good idea to disable these two options for the time being

In some cases, Flash-Based sliders/carousels break when using W3 Total Cache. If you notice such issue, make sure to add the slider plugin path to the W3 Total Cache “Rejected files” box.

0