Run WordPress at Faster Speed by Putting Objects and Variables into XCache / eAccelerator / APC / Memcached Cache Memory (Plugin)

»»»Run WordPress at Faster Speed by Putting Objects and Variables into XCache / eAccelerator / APC / Memcached Cache Memory (Plugin)
Feel that WordPress blog runs very slow? On a popular weblog powered by WordPress, slow is almost inevitable due to the nature of WordPress which is PHP scripts and dynamically generate each and every web page that served to visitors. There are plenty of overhead that consumes large amount of system resources, considering Apache web server needs to access, read, interpret and compile the PHP codes, and then retrieve the necessary data to built the webpage from MySQL database server before sending the HTTP response in HTML, comparing with just serving of HTML in static website.

A lot of workarounds and suggestions have been suggested to improve the performance of server that runs WordPress so that web page can be browsed faster. One of the popular plugin for this purpose is WP-Cache 2 WP Super Cache, a page caching system that caches WordPress pages in a static file for serving future requests directly from the file. However, some users may not able to use this approach due to hosting limitations, or requires certain dynamic components to be ran and triggers on runtime. Caching plugin will make all dynamic contents to be static, which mean it just triggers once on page creation and everything else is from the cache.

Thus some webmasters resort to PHP accelerator or opcode cacher such as eAccelerator, APC, XCache, Turck MMcache, Memcached, Zend Optimizer, Zend Platform and ionCube PHPA. PHP accelerator engine caches the compiled bytecode form of PHP scripts in memory to avoid the overhead while parsing and compiling source code on every page request.

By default, PHP accelerator or pcode caching engine caches only PHP code scripts. And it works well to speed up the overall performance of web server and your website, yet allow dynamic contents such as statistics tracker or site counters to run perfectly. But programmers from NeoSmart does not stop here. They have developed and released 2 plug-ins for WordPress that integrates the actual code the server runs with opcode caching engine of XCache or eAccelerator. In other word, not only PHP scripts are cached in memory, but also WordPress objects and variables are stored in ultra-fast memory too. If you ever turn on ENABLE_CACHE to yes in wp-config.php, you can treat the plugin job is to move the built-in WordPress object caching system cache files from stored at disk at wp-content/cache/ directory to memory.

The WordPress plugins are currently only available for XCache and eAccelerator.

Download XCache for WordPress (direct link)
Download eAccelerator for WordPress (direct link)

Also available from other developers are APC for WordPress and Memcached for WordPress.

Download APC for WordPress
Download Memcached for WordPress

By |2016-12-09T08:39:24+00:00December 9th, 2016|Categories: Web Publishing|Tags: , , , , |18 Comments

About the Author:

LK is a technology writer for Tech Journey with background of system and network administrator. He has be documenting his experiences in digital and technology world for over 15 years.Connect with LK through Tech Journey on Facebook, Twitter or Google+.