Newsletter

Redis Object Cache Pro

向下滚动
胡洪刚
胡洪刚
I`m
  • Residence:
    Canada
  • City:
    Toronto
  • Age:
    26

2022-12-10

未分类

胡洪刚
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);
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, // 多个站点改下
    '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);
Write me a message
Write me a message