Filed in Cloud Industry Insights by Matt Martz | May 9, 2012 3:00 pm
There are several things happening on your server that can become bottlenecks as traffic increases to your site. The first bottleneck will be retrieving the data from your MySQL database. The second is trying to execute the PHP code that will ultimately display the content of your site to your end users. New sites with a small amount of traffic might not see these bottlenecks, but as traffic to your site goes up, the efficiency of your server will go down. Standing up additional servers can solve this problem but can be an expensive solution. This is when caching becomes important.
Learn more about the good news of installing WordPress on Cloud Sites with just one click through the Rackspace control panel.
The object of caching is to store dynamically generated data in a static format so you can retrieve that data again without further processing. Since WordPress is an application that calls a database to retrieve content for your users, caching your content is a helpful way to speed up the performance of your server.
There are several plugins that can help you with caching your WordPress site. The BatCache plugin, along with the MemCached Object Cache plugin, is what WordPress.com uses to cache all its sites. It is a proven and simple plugin that will most likely work with your site. This solution is best if you are running a WordPress config on multiple dedicated or cloud servers.
If you are using something like shared hosting to run WordPress, you might want to look at something like WP Super Cache or W3 Total Cache. These options don’t take advantage of memcache or APC, but instead use static file caching. There are benefits to static file caching, namely you don’t have to invoke PHP to grab the data out of the caching mechanism, but rather deliver it directly from the disk to further cut down the load on the server. However, if you have more than one server in your WordPress Configuration, file caching doesn’t work that great since you are keeping two copies of the cache.
Even though your site might not have a huge amount of traffic right now, it is best to prepare for a growing user base by implementing a caching strategy as soon as you can.
Previously, Matt talked about three tips for selecting a WordPress plugin and check the following post where he explains the benefits of using a Content Delivery Network to serve up your larger media files and some plugins that can help you do it. Learn more about how Rackspace can help you with hosting your WordPress site.
Source URL: http://www.rackspace.com/blog/importance-of-caching-your-wordpress-site/
Copyright ©2014 The Official Rackspace Blog unless otherwise noted.