
Thursday, February 11, 2016
Redis-Backed Page Caching for WordPress
We’ve been testing our new Redis-based page caching plugin for WordPress these past few months, and today we’re happy to announce that we’ve open sourced it and deployed to all customer nodes here on Pressjitsu. Our MySQL-based caching solution has worked really well for our customers so far, but we thought we could use the same ideas and take them even further with Redis — an extremely fast and flexible in-memory key-value store.
So we rewrote our plugin, open sourced it on GitHub and released it on WordPress.org.
Installation and Configuration
The new plugin requires a little bit of extra configuration before it could be used, as well as a running Redis server and the Redis PECL extension. Both are likely to be available in pre-built packages for your favorite Linux flavor, for example in Debian/Ubuntu:
apt-get install redis-server php5-redis
After installing and activating the WordPress plugin, you’ll need to create a symbolic link to the advanced-cache.php dropin:
cd /path/to/wp-content
ln -s plugins/redis-page-cache/advanced-cache.php advanced-cache.php
Finally, enable page caching in WordPress with a constant in wp-config.php:
define( 'WP_CACHE', true );
The plugin has quite a #wordpress #smallbusiness #entrepreneur


Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment