darapati27
Member
- May 4, 2022
- 76
- 28
- 18
for better performance should I use as say in overview?
Code:define('WP_REDIS_CONFIG', [ 'token' => 'Babiato', 'host' => '127.0.0.1', 'port' => 6379, 'database' => 0, // change for each site 'timeout' => 1.0, 'read_timeout' => 1.0, 'compression' => 'zstd', 'serializer' => 'igbinary', 'async_flush' => true, 'split_alloptions' => true, 'prefetch' => true, 'debug' => false, 'save_commands' => false, ]); define('WP_REDIS_DISABLED', getenv('WP_REDIS_DISABLED') ?: false);
or is outdated?
define( 'WP_REDIS_CONFIG', [
'token' => '@Y:R;Vl^W9wCX[;,6s]aSF2XY-pyJaj%@7S9-kf@U)HZ^5Tr)A*F9hDjoFl5',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
'maxttl' => 3600 * 24 * 7,
'timeout' => 1.0,
'read_timeout' => 1.0,
'retry_interval' => 300,
'retries' => 5,
'split_alloptions' => true,
'debug' => false,
]);
define('WP_REDIS_DISABLED', false);
Use this, so far running smoothly