我想添加一個Redis對象現金服務器與我的WordPress的網站。我下面這個article,我已經裝箱帳戶redislabs.com與WordPress集成RedisLab錯誤:PHP警告:Redis :: select()期望參數1是整數
按照本教程中,我object-cache.php
文件有
define("WP_REDIS_BACKEND_HOST", "HOST_URL");
define("WP_REDIS_BACKEND_PORT", "12345");
define("WP_REDIS_BACKEND_DB", "DATABAES_NAME");
define("WP_REDIS_PASSWORD", "PA$$WORD");
和
347 $this->redis->auth($redis['password']);
348
349 if (isset($redis['database'])) {
350 $this->redis->select($redis['database']);
351 }
,但我得到的線這個錯誤350
錯誤
[Sun Apr 30 19:54:30.579728 2017] [:error] [pid 1750] [client 162.158.26.98:21176] PHP Warning: Redis::select() expects parameter 1 to be integer, string given in /var/www/public/wordpress/wp-content/object-cache.php on line 350, referer: mysite.com/about-us/
任何人都可以幫我解決這個問題嗎?
由於事先
Ariful