Speeding Up WordPress with APC Object Cache and WP Super Cache

WordPress can be very fast after some (small) effort on performance optimization with the help from its plenty of plugins. Two of the directions are using cache to cut down the number of database queries and optimizing PHP’s performance with opcode cache. In this post, we introduce how to speed up WordPress with APC object cache and page cache with the two plugins “APC Object Cache Backed” and “WP Super Cache”.

Install WP Super Cache

Search WP Super Cache in the WordPress dashboard, install it, activate it and enable the caching in the plugin admin page.

Install APC for php and httpd

Install APC support for php on Fedora/CentOS/RHEL:

# yum install php-pecl-apc php-pear

Restart the httpd service:

# service httpd restart

You can use a small php script to check whether the APC is working:

<?php
phpinfo();
?>

Install the APC Object Cache Backend plugin

After the APC is supported in your PHP, you can install the APC Object Cache Backend plugin to start using the APC cache.

Enjoy the boosted performance of WordPress now!

Eric Zhiqiang Ma

Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

2 comments:

Leave a Reply

Your email address will not be published. Required fields are marked *