Would this redis settings in wp-config.php (unmanaged Wordpress app) give any conflicts?
-
wrote on Mar 17, 2023, 1:18 PM last edited by
define('WP_REDIS_CONFIG', [
'token' => '...',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0, // change for each site
'timeout' => 0.5,
'read_timeout' => 0.5,
'retry_interval' => 10,
'retries' => 3,
'backoff' => 'smart',
'compression' => 'zstd', //zstd
compresses smaller,lz4
compresses faster
'serializer' => 'igbinary',
'async_flush' => true,
'split_alloptions' => true,
'prefetch' => true,
'debug' => false,
'save_commands' => false,
]);define('WP_REDIS_DISABLED', getenv('WP_REDIS_DISABLED') ?: false);
-
wrote on Mar 17, 2023, 1:19 PM last edited by Vladimir Mar 17, 2023, 1:21 PM
Except I change the host and add a password. Also, this configuration requires Redis Server 4.0 (or newer) as well as PhpRedis to be compiled with igbinary and zstd support.
-
-
Except I change the host and add a password. Also, this configuration requires Redis Server 4.0 (or newer) as well as PhpRedis to be compiled with igbinary and zstd support.
Staffwrote on Mar 17, 2023, 4:17 PM last edited by girish Mar 17, 2023, 4:17 PM@Vladimir Can you explain a bit more what the issue you are trying to solve is and what is that config you have posted? I see that it's some redis config, but what are you looking to achieve?