wp-redis:使用Redis的WordPress对象缓存

时间:2021-05-03 18:57:31
【文件属性】:
文件名称:wp-redis:使用Redis的WordPress对象缓存
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-03 18:57:31
PHP WP Redis 使用Redis的WordPress对象缓存。 由Alley Interactive提供。 先决条件 设置 将object-cache.php安装到wp-content/object-cache.php 。 在wp-config.php文件中,添加服务器凭据: $redis_server = array( 'host' => '127.0.0.1', 'port' => 6379, 'auth' => '12345' ); (可选)为键添加唯一的盐: define( 'WP_CACHE_KEY_SALT', 'my-unique-phrase' ); 与推进器接合。
【文件预览】:
wp-redis-master
----.travis.yml(322B)
----phpunit.xml(321B)
----bin()
--------install-wp-tests.sh(2KB)
--------install-redis.sh(339B)
----object-cache.php(21KB)
----tests()
--------bootstrap.php(466B)
--------test-cache.php(9KB)
----LICENSE(18KB)
----README.md(646B)

网友评论