By default WordPress is a dynamic CMS (Content Management System). This means that for every visitor request that WordPress has to process, it must first connect to the database to see if the requested page even exists.
 
In a lot of cases this might not be problematic on a site that doesn't receive much traffic. However a sudden surge in traffic caused by search engine bots, or just a general increase in normal traffic can quickly cause your WordPress site to use up a lot of CPU resources from the server while trying to fulfill needless duplicate requests again and again.
 
You can counter this increase in CPU usage by implementing a caching plugin. What these do is cache the first visitor's request of a new page to a plain HTML file on the server, then when another visitor comes through and requests the same page, so long as the page wasn't updated in your administration section, or updated by a comment, the cached HTML page will be served.
 
This can greatly reduce CPU usage of your WordPress site very easily. As an example let's say you had 100 views of your front page, without caching that would require the same database query to have to run 100 times and every time it's just getting back the exact same data anyways.
 
With a caching plugin only the first user would have the database query run to generate the cached HTML file, then the next 99 visitors would get that cached HTML served to them right away, without having to wait for any database activity to complete.
 
This is just about always a win-win, because your visitors don't have to wait as long for your pages to load, and you're reducing the impact of WordPress's requests on the server's performance.
 
One of the simplest WordPress caching plugins to setup is WP Super Cache which is discussed in a previous article of ours.

However if you need more advanced caching options such as the ability to serve a static 404 error page the steps below will walk you through installing and configuring the W3 Total Cache plugin for WordPress.

**Note: This will not work with Wordpress Multisites.

  1. Hover over Plugins in the left-hand menu, then click Add New.
    plugins-add-new
  2. In the Search box, type in w3 total cache and click on Search Plugins.
    click-search-plugins
  3. Under W3 Total Cache click on Install Now.
    click-install-now
  4. Click OK in the installation pop-up.
    click-ok
  5. Click Activate Plugin.
    click-activate-this-plugin
  6. You should now see Plugin activated.
    plugin-activated
  7. From the left-hand menu, you should now have a new Performance section, hover over this and click on General Settings.
    performance-general-settings
  8. Scroll down the general settings page ensuring that each main section is enabled.

    These would be:

    Page Cache
    w3tc-setting-page-cache
    Minify
    w3tc-setting-minify
    Database Cache
    w3tc-setting-database-cache
    Object Cache
    w3tc-setting-object-cache
    Browser Cache, after enabling this option click on Save all settings
    w3tc-setting-browser-cache
  9. Hover over Performance again in the left-hand menu, and click on Page Cache.
    performance-page-cache
  10. Ensure that these options have a checkmark beside them, then click on Save all settings:

    Cache home page

    Cache feeds: site, categories, tags, comments

    Cache 404 (not found) pages

    Cache requests only for yourdomain.com hostname

    Don't cache pages for logged in users

    performance-page-cache-save-all
  11. Finally to confirm that you've setup everything correctly, in your web-browser open up your site and hit (Ctrl-U), or go to View -> Page source to view the source of the page. Scroll to the very bottom of the page and you should see the W3 Total Cache banner letting you know the page has been optimized.
    w3tc-confirm-page-source

Once you've confirmed that W3 Total Cache is up and running properly on your website you're done. Now you can enjoy quicker page loads, and reduced resource usage from your WordPress site! For more information on this course please visit Recommended Plugins.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2218
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5640

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!