Saturday, May 18, 2013

WordPress Optimization

If you run a high traffic WordPress installation you will want to optimize WordPress and your server to run as efficiently as possible. This article is a general overview of the avenues to pursue. It's not a detailed technical explanation of each aspect.

If you need a quick fix now, go straight to the caching page, you'll get the biggest benefit for the smallest hassle there.

For a quick introduction to WordPress Optimization see the cheat sheet. For all the articles on optimizing wordpress see the WordPress Optimization category.

 Hosting Specific
The optimization techniques available to you will depend on your hosting setup. This article is divided into categories according to hosting type.

Shared Hosting
This is the most common type of hosting. Your site will be hosted on a server along with many others. The hosting company manage the web server for you, so you have very little control over server settings and so on. The areas most relevant to this type of hosting are:
    Caching
    WordPress Performance

Other areas which may be of interest include:
    Offloading

Virtual / Dedicated Server

In this hosting scenario you have control over your own server. The server might be a dedicated piece of hardware or one of many virtual servers sharing the same physical hardware. The key thing is, you have control over the server settings. In addition to the areas above (caching and wordPress performance, the key areas of interest here are:

    Server Optimization
Other areas which may be of interest include:
    Offloading

Multiple Servers
Once you're dealing with very high traffic situations it may be necessary to employ multiple servers. If you're at this level, you should already have employed all of the applicable techniques listed above.

The WordPress database can be easily moved to a different server and only requires a small change to the config file. Likewise images and other static files can be moved to alternative servers (see offloading).

If you're employing multiple database servers, the HyperDB class provides a drop in replacement for the standard WPDB class and can handle multiple database servers in both replicated and partitioned structures.

WordPress MU Optimization
Many of the server side techniques discussed here also apply to WordPress MU.
Further Reading

In addition to the articles linked above, these resources may provide more information.

Presentation at WordCamp 2007 on HyperDB and High Performance WordPress:
    Video of the Presentation
    Copy of the Slides

0 comments:

Post a Comment