Search code examples
wordpressphpredis

WPengine not allowing to connect redis with scalegrid cluster


I have setup with scalegrid redis cluster with wordpress. but my wp-engine WordPress site unable to connect with scale grid cluster for the Wp object cache plugin

I am getting this issue

Status: Not connected
Client: PhpRedis (v5.3.1)
Drop-in: Valid
Disabled: No
Ping: 
Connection Exception: Connection refused (RedisException)
Errors: [
    "Connection refused"
]
PhpRedis: 5.3.1
Predis: Not loaded
Credis: Not loaded
PHP Version: 7.4.14
Plugin Version: 2.0.17
Redis Version: Unknown
Multisite: No
Filesystem: Working
Global Prefix: "wp_"
Blog Prefix: "wp_"
WP_REDIS_DISABLED: false
WP_REDIS_PREFIX: "8820f86645f21b76"
WP_CACHE_KEY_SALT: "8820f86645f21b76"
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",
    "redis-cache"
]
Ignored Groups: [
    "counts",
    "plugins",
    "themes",
    "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",
    "redis-cache",
    "blog_meta",
    "tribe-events-non-persistent",
    "avada"
]
Unflushable Groups: []
Drop-ins: [
    "advanced-cache.php v by ",
    "Redis Object Cache Drop-In v2.0.17 by Till Krüss"
]

Is anyone resolve this issue?

Note: I didn't install redis-cli on wp-engine.in my case i am using scalegrid cluster to connect with plugin.

Thanks in Advance


Solution

  • I have been solved this, by making changes in the scale grid Redis cluster.

    just for other developer's context, make sure that you have created new cluster without -- tls after making this change connection won't get refused with the wp-cache object plugin.

    also as per the https://help.scalegrid.io/docs/redis-cli-tool-installation-use document make sure that you can able to make a connection with sg-cli.