i put the code this code:
define('WP_REDIS_CONFIG', [
'token' => 'Babiato',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0, // change for each site
'maxttl' => 3600 * 24 * 7, // 7 days
'timeout' => 1.0,
'read_timeout' => 1.0,
'split_alloptions' => true,
'debug' => false,
]);
define('WP_REDIS_DISABLED', false);
also, try this code:
define('WP_REDIS_CONFIG', [
'token' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0, // change for each site
'maxttl' => 3600 * 24 * 7, // 7 days
'timeout' => 2.5,
'read_timeout' => 2.5,
'split_alloptions' => true,
'debug' => false,
]);
define('WP_REDIS_DISABLED', false);
still, I'm getting this message
An object cache error has occurred:
- Failed to initialize object cache: License `token` must be a 60 characters long string