下载插件Redis Object Cache:

配置:
1、wp-config.php:
// Redis Object Cache
define('WP_CACHE', true);
define("WP_CACHE_KEY_SALT",'cnsec');
define('WP_REDIS_HOST',['127.0.0.1']);
define('WP_REDIS_SERVERS', [
'tcp://127.0.0.1:6379?database=0&alias=master'
]);
//Redis连接密码,如果Redis设置了密码
// define( 'WP_REDIS_PASSWORD', 'secret' );

2、wp-content/目录下object-cache.php:
database配置为同一个,

如果需要配置密码则添加password项:
$parameters = [
'scheme' => 'tcp',
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
'password' => '123',
'timeout' => 1,
'read_timeout' => 1,
'retry_interval' => null,
];
3、redis配置密码
配置效果:










![[八卦] 王婷婷—揭秘一个大三女生的性爱录像-微慑信息网-VulSee.com](http://free.86hy.com/crack/pic/1.jpg)
![[随笔]今天国际警察节-微慑信息网-VulSee.com](http://photo.sohu.com/20041017/Img222528326.jpg)

青云网
