Published Date: November 12, 2012

WordPress is a great piece of blogging / CMS software. If you are running a WordPress site and you are having growing pains, you can combine the two to handle increased traffic and, more than likely, get pages to load faster for everyone.

WordPress has built-in support for extensible caching, but by default, it only valid for one session. While this helps speed up page loads / reduce server load for individual users, caching the objects in a non-session-exclusive (persistent) cache has much more potential for performance improvements and generally scales better. (You can read more about built-in WP_Cache mechanisms here: http://codex.wordpress.org/Function_Reference/WP_Cache)

We recommend and have successfully implemented the WordPress plugin Memcached object cache (http://wordpress.org/extend/plugins/memcached/), which is trivial to install/configure. By default, XeonBD’s all shared servers are running a single Memcached server on the same server that PHP is running on (i.e. 127.0.0.1 or local host). It also has the port 11211, which is the “standard” Memcached port.

memcached actually installed, running and accepting connections on whatever you configure Memcached object cache to use (127.0.0.1:11211 is again, the default).

Installing the actual adapter that lets WP_Cache use Memcached is just a matter of putting the object-cache.php into your wp-content directory. If your set up using the defaults, it should just start working immediately. This, in combination with the fantastic WP-Super Cache-Plus plugin (http://wpscp.trac.armadillo.homeip.net/) will allow your site to handle much more traffic than would otherwise be possible.

 

Comments

comments

Recommended Posts
Contact Us

We'd love to hear from you, we'll get back to you soon.

Start typing and press Enter to search