注意:Redis Cache Pro(Object Cache Pro) v1.21.2和 v1.21.0已亲测(2024-7-30),可以使用!
Redis Cache Pro安装教程
推荐性能配置:
define(‘WP_REDIS_CONFIG’, [
‘token’ => ‘ndHoi8hn6wZmLUb8OnalsjEd8v8doxMR01vXYIJ6cn7EZjVZ3UulNJuqANaJ’,
‘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);
高性能配置:
define(‘WP_REDIS_CONFIG’, [
‘token’ => ‘your-license-token’,
‘host’ => ‘127.0.0.1’,
‘port’ => 6379,
‘database’ => 0, // 针对每个站点进行更改
‘timeout’ => 0.5,
‘read_timeout’ => 0.5,
‘retry_interval’ => 100,
‘retries’ => 3,
‘backoff’ => ‘smart’,
‘compression’ => ‘zstd’, // `zstd` 压缩更小,`lz4` 压缩更快
‘serializer’ => ‘igbinary’,
‘async_flush’ => true,
‘split_alloptions’ => true,
‘prefetch’ => true,
‘strict’ => true,
‘debug’ => false,
‘save_commands’ => false,
]);
define(‘WP_REDIS_DISABLED’, getenv(‘WP_REDIS_DISABLED’) ?: false);
Redis Cache Pro缓存插件破解版简介
- 重写原始性能
- 符合 WordPress 对象缓存 API
- 轻松调试和记录
- 缓存预取和分析
- 完全单元测试(100% 代码覆盖率)
- 使用 TLS 的安全连接
- 通过 WordPress 和 WP CLI 进行健康检查
- 针对 WooCommerce、Jetpack 和 Yoast SEO 进行了优化
评论(0)