Using Redis for WordPress Object-Cache

Redis Installation

Add repo which maintains latest redis

add-apt-repository ppa:chris-lea/redis-server

Install redis-server and php-binding

apt-get update
apt-get install redis-server php5-redis

WordPress Object Cache

We are using this object-cache plugin –

cd /var/www/
chown www-data: object-cache.php

WordPress Cache Salt/Prefix

Useful if you have multiple WordPress.

Inside wp-config.php

define('WP_CACHE', true);
define('WP_CACHE_KEY_SALT', '');