PhpRedis

Object Cache Pro requires the PhpRedis extension in order to communicate with the caching server. Predis, while also maintained by us is for performance reasons not supported.

Installation

On many systems the redis extension is already installed, however if its not you may need to install it. Depending on the operating system, package manager and PHP setup there are various ways to install it.

pecl install igbinary

pie install phpredis/phpredis

sudo apt install php-redis

yum install php-pecl-redis

You can of course also install PhpRedis directly from source.

Be sure to install the redis extension for both the PHP-FPM and the CLI installation if they aren’t the same, that way WP-CLI works too.

Troubleshooting

If Object Cache Pro says that The PhpRedis extension is not loaded in this environment [...], then the PHP and web server processes need to be restarted, or alternatively the extension=redis.so directive is not in the php.ini for that environment.