voodish logo
tweet rss book of faces Linked In

Help Wordpress weather Traffic storms

Wordpress is known for being quite a resource hog, especially heavy on the servers CPU during traffic storms, but there are methods to help the process run a lot smoother, and allow you to accept many more connections than would be otherwise possible.

What will you achieve?

Greatly reduced CPU load and massive traffic storm benefits, check out the CPU % load difference when loading this page from Wordpress.
with-and-without-caching-cpu.gif

Background, how Wordpress displays content

The first thing to understand is that Wordpress builds a page in rather a unique manner and that this method is what creates the high demand on the server.

wordpress-page-generation.png
  1. Browser requests a page from the server
  2. Apache receives request via URL and feeds into WordPress
  3. WordPress loads / processes request
  4. WordPress generates code to display
    1. Several MySQL queries
    2. Apache is fed the data in real time
    3. Data sent to browser
  5. Browser receives and processes the data to display
    1. REPEAT STEPS for each one of the resources that the page requires!!

You can read more about this process here

So what is this method?

Basically it is a caching method, so that when ‘a’ page has been visited it will be converted into a plain HTML file and sent to a cache for an administrable amount of time before being deleted. This has enormous benefits over the standard method, and can cut server load by up to 70%!

The Solution - WP Super Cache

cached-page.gif
This plugin generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.

Download the Plugin

wp-super-cache-zip-screen.gif

Alternatively download from WordPress.org
Full Plug-in Directions can be found at: http://wordpress.org/extend/plugins/wp-super-cache/

Related Articles

Comments RSS Feed

1 Trackbacks/Pingbacks

  1. Pingback: WordPress problems with heavy traffic on October 5, 2008

1 Comments

  1. forpetmenot November 16, 2008

    Thanks,

    I was unaware of this and your explanation was perfect and very helpful.

  2. Go to Top of the page

Leave a comment