The object-cache.php is loaded automatically by WordPress, so I assume the PHP warning you’re seeing is file permission related error. I’d suggest you ask your hosting provider for assistance with that.
Regarding the Redis connection, could you post text from the “Diagnostics” section below the Redis server list?
Thank you Till for your fast reply,
Diagnostic Section:
PHP Version: 7.0.12
Multisite: No
Redis: 3.0.0-rc1
Predis: 1.1.1
Status: Not Connected
Client: PECL Extension (v3.0.0-rc1)
WP_REDIS_SCHEME: "unix"
WP_REDIS_PATH: "\/data\/sockets\/redis\/e*****-259.sock"
WP_CACHE_KEY_SALT: ""
Drop-in: Valid
Global Prefix: "bbha_"
Blog Prefix: "bbha_"
Global Groups: ["blog-details","blog-id-cache","blog-lookup","global-posts","networks","rss","sites","site-details","site-lookup","site-options","site-transient","users","useremail","userlogins","usermeta","user_meta","userslugs"]
Ignored Groups: ["counts","plugins","blog-details","blog-id-cache","blog-lookup","global-posts","networks","rss","sites","site-details","site-lookup","site-options","site-transient","users","useremail","userlogins","usermeta","user_meta","userslugs","themes"]
solved.
the settings in the wp-config.php were added to the end of the file, but had to be defined earlier.
thank you for your time!
Hello,
when i enable the cache via GUI settings it says:
Status: Not Connected
Client: PECL Extension (v2.2.5)
in wp-config.php i added at the top and below of w3 Total Cache.
/** Enable W3 Total Cache */
define(‘WP_CACHE’, true); // Added by W3 Total Cache
/** Redis Caching Settings */
define ( ‘WP_REDIS_HOST’, ‘127.0.0.1’);
And on Diagnostics.
PHP Version: 5.6.28
Multisite: No
Redis: 2.2.5
Predis: 1.1.1
Status: Not Connected
Client: PECL Extension (v2.2.5)
WP_REDIS_HOST: “127.0.0.1”
WP_CACHE_KEY_SALT: “”
Drop-in: Valid
Please help and Thank you.
@jookkoo: Your using the default credentials. Can you verify them by executing this command via SSH on your server?
redis-cli ping
Thank you for your quick reply. after i’ve run your command. it’s display as below.
-bash: redis-cli: command not found
Looks like Redis Server is not installed on your sever.
Thank you so much, Now i’ve installed redis from https://redis.io/topics/quickstart and your Redis is display – Status Connectd.
Thank you again.
Now, Settings-Redis it’s display as below.
Status: – Connected
Client: – Predis (v1.1.1)
PHP Version: 7.0.13
Multisite: No
Redis: Not Found
Predis: 1.1.1
Status: Connected
Client: Predis (v1.1.1)
WP_REDIS_HOST: “127.0.0.1”
WP_CACHE_KEY_SALT: “”
Drop-in: Valid
What it’s mean Redis: Not Found?
“Redis” only refers to PHP’s PhpRedis extension. I’ll make it more clear with the next release.