Wordpress Caching How To

May 20, 2006 on 12:44 am | In cache, caching, digg, wordpress |

On Friday afternoon one of the articles we posted made front page of digg. After about 3-5 minutes the server load shot up to about 200, which pretty much took the machine offline. Our host was able to get on the machine, disable the site temporarily, and get the server functional again.

We spent the next half hour researching caching options for wordpress. We finally decided to setup WP-Cache 2.0.

WP-Cache is an extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests directly from the file rather than loading and compiling the whole PHP code and then building the page from the database. WP-Cache allows to serve hundred of times more pages per second, and to reduce the response time from several tenths of seconds to less than a millisecond.

Once we setup caching we were then able to bring the website back up, and keep the server load to about 10-15, which was more than acceptable, especially for being on the front page of digg.

So, here is a quick how-to on setting up caching on your wordpress to be (a little more) prepared for a high burst of traffic.

  1. Download WP-Cache 2.0
  2. Unzip the file, and place the contents in wp-content/plugins/wp-cache/
  3. Create wp-content/cache directory, and make sure that Wordpress can write to it
  4. Activate the plugin in the Plugins screen
  5. Add the following line to you wp-config.php file: define(’WP_CACHE’, true);
  6. Under the Options screen, select “WP-Cache” and enable caching.
  • For further instructions and troubleshooting, please read the README file included in the zip.
    Your wordpress should be caching now. You can now play around with the settings in the WP-Cache screen to customize it to your liking. You can also see how many pages are being cached, in that same screen.Please be aware that although you are now caching, depending on your hardware and connection type to the internet, your server might still not be able to handle all the load.

7 Comments »

RSS feed for comments on this post. TrackBack URI

  1. […] WordPress Caching - great article on how to survive being dug by Digg. Install WP-Cache 2.0. […]

    Pingback by Pig Pen - Web Standards Compliant Web Design Blog » Blog Archive » WordPress Caching — May 20, 2006 #

  2. […] Next, we’ll look at WP-Cache 2.0. This is an excellent plugin that really works. iBloggedThis recently witnessed the “Digg” effect which temporarily shut them down, but by using this plugin managed to severly reduce the load on the server. So, not only will it help speed up your site, but it will also help reduce your bandwidth use. […]

    Pingback by Confessions of a Scotsman » Blog Archive » Optimising your Website (and Wordpress) — May 21, 2006 #

  3. Hey, great article. I have referenced to it in my own more general tutorial. Click on my name in the comment to view it.

    Comment by Tane Piper — May 21, 2006 #

  4. […] Last week we wrote a quick how-to on caching with WordPress, by using the WP-Cache 2 plugin. It seems that there is a small bug in the code which may effect some people. […]

    Pingback by iBloggedThis » WordPress Caching: WP-Cache Plugin - Blank Page Bug Fix — May 28, 2006 #

  5. Nice. I have been in search of this exact thing. Thanks much for the post. I will be getting this setup this week.

    Comment by toronto web design — September 18, 2006 #

  6. Thanks .
    Actually i think , u just mirrored the information from the Author’s site .

    Comment by BooTCaT — December 27, 2006 #

  7. Thank you SO MUCH FOR THIS INFORMATION!

    Amazing plugin! Easy install.

    Thank you Thank you Thank you Thank you

    Comment by George — November 27, 2007 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Wordpress Caching How To

May 20, 2006 on 12:44 am | In cache, caching, digg, wordpress |

On Friday afternoon one of the articles we posted made front page of digg. After about 3-5 minutes the server load shot up to about 200, which pretty much took the machine offline. Our host was able to get on the machine, disable the site temporarily, and get the server functional again.

We spent the next half hour researching caching options for wordpress. We finally decided to setup WP-Cache 2.0.

WP-Cache is an extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests directly from the file rather than loading and compiling the whole PHP code and then building the page from the database. WP-Cache allows to serve hundred of times more pages per second, and to reduce the response time from several tenths of seconds to less than a millisecond.

Once we setup caching we were then able to bring the website back up, and keep the server load to about 10-15, which was more than acceptable, especially for being on the front page of digg.

So, here is a quick how-to on setting up caching on your wordpress to be (a little more) prepared for a high burst of traffic.

  1. Download WP-Cache 2.0
  2. Unzip the file, and place the contents in wp-content/plugins/wp-cache/
  3. Create wp-content/cache directory, and make sure that Wordpress can write to it
  4. Activate the plugin in the Plugins screen
  5. Add the following line to you wp-config.php file: define(’WP_CACHE’, true);
  6. Under the Options screen, select “WP-Cache” and enable caching.
  • For further instructions and troubleshooting, please read the README file included in the zip.
    Your wordpress should be caching now. You can now play around with the settings in the WP-Cache screen to customize it to your liking. You can also see how many pages are being cached, in that same screen.Please be aware that although you are now caching, depending on your hardware and connection type to the internet, your server might still not be able to handle all the load.

7 Comments »

RSS feed for comments on this post. TrackBack URI

  1. […] WordPress Caching - great article on how to survive being dug by Digg. Install WP-Cache 2.0. […]

    Pingback by Pig Pen - Web Standards Compliant Web Design Blog » Blog Archive » WordPress Caching — May 20, 2006 #

  2. […] Next, we’ll look at WP-Cache 2.0. This is an excellent plugin that really works. iBloggedThis recently witnessed the “Digg” effect which temporarily shut them down, but by using this plugin managed to severly reduce the load on the server. So, not only will it help speed up your site, but it will also help reduce your bandwidth use. […]

    Pingback by Confessions of a Scotsman » Blog Archive » Optimising your Website (and Wordpress) — May 21, 2006 #

  3. Hey, great article. I have referenced to it in my own more general tutorial. Click on my name in the comment to view it.

    Comment by Tane Piper — May 21, 2006 #

  4. […] Last week we wrote a quick how-to on caching with WordPress, by using the WP-Cache 2 plugin. It seems that there is a small bug in the code which may effect some people. […]

    Pingback by iBloggedThis » WordPress Caching: WP-Cache Plugin - Blank Page Bug Fix — May 28, 2006 #

  5. Nice. I have been in search of this exact thing. Thanks much for the post. I will be getting this setup this week.

    Comment by toronto web design — September 18, 2006 #

  6. Thanks .
    Actually i think , u just mirrored the information from the Author’s site .

    Comment by BooTCaT — December 27, 2006 #

  7. Thank you SO MUCH FOR THIS INFORMATION!

    Amazing plugin! Easy install.

    Thank you Thank you Thank you Thank you

    Comment by George — November 27, 2007 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^