多網站共用 Redis
多網站共用 Redis說明:
如沒設定會出錯,如已呈現空白畫面,底下方式可適用
一. 編輯 wp-config.php
在底下這行
/* That's all, stop editing! Happy publishing. */
上方新增
define( 'WP_CACHE_KEY_SALT', '網址名稱,不需添加 http 或 https' );
二. 編輯 wp-content/plugins/redis-cache/includes/object-cache.php
修改底下這行
'database' => 0,
PS:可以替每個網站指定不一樣的數值,範圍0-15
三. 使用的外掛
搜尋 Redis Object Cache
商標圖片如下
頁:
[1]