- XF Compatibility
- 2.3.x
- 2.2.x
- Short Description
- This add-on requires Xon's Standard Library and Credis with custom cache provider for Redis. Install phpredis for best performance. Configures Redis cache with server details. Enables read from slave for improved performance. Supports Redis Sentinel for high availability.
This add-on require Standard Library by Xon
This add-on uses Credis with a custom cache provider for Redis (based off Cm_Cache_Backend_Redis). For best performance, install the php extension: phpredis
Installation
Troubleshooting
Please be aware that Redis is very sensitive to latency in a virtual environment. If repeated connection failures or protocol errors are experienced disable any Redis Persistence options.
Read Scaling
With the $config['cache']['config']['load_from_slave'] option, reads can be deferred to a singular slave instance. This takes all the options of 'config' (except the slave config)
See the FAQ for configuration samples.
High availability
The Zend component support master/slave setups with Redis Sentinel support. It does not support Redis multi-master clustering.
This add-on uses Credis with a custom cache provider for Redis (based off Cm_Cache_Backend_Redis). For best performance, install the php extension: phpredis
Installation
and add:
PHP:
$config['cache']['enabled'] = true;
$config['cache']['sessions'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = [
'server' => '127.0.0.1',
'port' => 6379,
];
Please be aware that Redis is very sensitive to latency in a virtual environment. If repeated connection failures or protocol errors are experienced disable any Redis Persistence options.
Read Scaling
With the $config['cache']['config']['load_from_slave'] option, reads can be deferred to a singular slave instance. This takes all the options of 'config' (except the slave config)
See the FAQ for configuration samples.
High availability
The Zend component support master/slave setups with Redis Sentinel support. It does not support Redis multi-master clustering.
- Additionally, this add-on implement caching of thread counts in a forum.
- Redis Sentinel support for high-availability (see FAQ for details).