My Wordpress site jumped from 3,000 visits to over 20,000 via organic traffic. How can I optimize it to handle the current load?

I know their are some brilliant minds on here. Any illumination in this regard will be appreciated.

  • 1
    And now it will be even more :-)
    – Sarfraz
    Feb 6 '11 at 9:17
  • lmao :/ yeah I'm not extremely excited for the traffic at the moments....because if I can't stay online and keep timing out it will just cost me more server resources and my visitors will go nowhere and leave after a few seconds.
    – Nicholas J Sheriff Jr
    Feb 6 '11 at 9:25
  • 1
    I know next to nothing about Wordpress, but the general approach I'd use would be trying to measure and identify possible bottlenecks and work on getting those faster. Another approach might be just simply throwing more hardware & bandwidth at the server-side. Also maybe this could help: codex.wordpress.org/WordPress_Optimization Edit: Near the top of the page it says: *If you need a quick fix now, go straight to the caching page, you'll get the biggest benefit for the smallest hassle there. * -> codex.wordpress.org/WordPress_Optimization/Caching
    – esaj
    Feb 6 '11 at 9:31
  • Gar, I accidentally voted to migrate to meta.so when I meant to vote serverfault. Please excuse that blunder.
    – marcog
    Feb 6 '11 at 9:59

First, you'll have to figure out exactly where your site is slow: is it in database processing? Is it in the front-end servers? Is it in the wordpress processes? Bandwidth? Maybe your host can help you figure out where your bottleneck is. (They probably want to sell exactly the right amount of CPU/Memory/Database/Bandwidth, to give you the most bang for your buck and bring in the most bucks. :)

Make static what you can.

Use a CDN to serve JQuery or similar tools. Google and Microsoft host JQuery for you! Woot.

Use a CDN for your most-popular images. (Akamai, etc.) Use CSS image sprites to collapse multiple images into a single image, to reduce the number of connection requests necessary to render a page.

Implement some mechanism to cache rendered HTML pages, one for unauthenticated viewing, then per-person caches if individual viewers make multiple hits for the same content that must be re-generated. Implement some 'fragment caching' mechanism to cache smaller pieces, too, so that generating entire new pages to retire or populate the cache can go a little faster.


There are an awful lot of possible optimizations, but installing WP Super Cache will almost certainly solve your immediate problem.

I host my blog on a 1gb Linode and have handled tens of thousands of requests some hours, without the VPS even breaking 10% CPU usage. That's possible solely due to the static caching that WP Super Cache provides.

  • I just installed it on "Easy" mode...do you have any suggestions for me on customizing the plugin settings for more optimization?
    – Nicholas J Sheriff Jr
    Feb 6 '11 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy