Support » Plugin: Redis Object Cache » Redis Object Cache – not connected

  • Resolved haleyanderson

    (@haleyanderson)


    Hi everyone,
    I’m super new to WP back-end stuff (graphic designer, not a web developer) and am trying to set up Redis to help speed up my site. I got it set up on Cloudways, the server I’m using, and installed the plugin on the WP side. I clicked “Enable Object Cache” and it reloaded to show me the connection status was “not connected.” I thought I did everything right?

    Here’s what I found under “Diagnostics”:

    Status: Not connected
    Client: 
    Drop-in: Valid
    Disabled: No
    Ping: 
    Connection Exception: Connection refused [tcp://127.0.0.1:6379] (Predis\Connection\ConnectionException)
    Errors: [
        "Connection refused [tcp:\/\/127.0.0.1:6379]"
    ]
    PhpRedis: Not loaded
    Predis: 1.1.6
    Credis: Not loaded
    PHP Version: 7.3.11
    Plugin Version: 2.0.21
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: null
    Filesystem: Working
    Global Prefix: "wp_"

    And here’s what I saw under “Overview”:

    Drop-in: Valid
    Key Prefix: thescoringmethod.com
    Connection Status: Not connected

    What does this mean? I tried purging the Varnish cache on Cloudways and restarting Redis on Cloudways as well, but that didn’t solve anything. I used a tutorial published by Cloudways to install Redis (https://www.cloudways.com/blog/install-redis-cache-wordpress/) where it tole me to add this: define(‘WP_CACHE’, true); under where it says <?php, and then this: define(‘WP_CACHE_KEY_SALT’, ‘thescoringmethod.com’); under the Salt Keys Section. That still didn’t fix anything. What am I doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Hi @haleyanderson!

    The Cloudways support team can help you with this 👍

    “Connection refused” usually means Redis Server is not running.

    Hello budy, how are you? I’m having the same problem on my website! Could you tell me how your problem was solved? Thanks in advance!

    heriton

    (@heriton)

    Status: Not connected
    Client: 
    Drop-in: Valid
    Disabled: No
    Ping: 
    Connection Exception: Connection refused [tcp://127.0.0.1:6379] (Predis\Connection\ConnectionException)
    Errors: [
        "Connection refused [tcp:\/\/127.0.0.1:6379]"
    ]
    PhpRedis: Not loaded
    Predis: 1.1.6
    Credis: Not loaded
    PHP Version: 7.4.25
    Plugin Version: 2.0.21
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: null
    Filesystem: Working
    Global Prefix: "wpeu_"
    Blog Prefix: "wpeu_"
    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"
    ]
    Unflushable Groups: []
    Drop-ins: [
        "advanced-cache.php v by ",
        "Redis Object Cache Drop-In v2.0.21 by Till Krüss"
    ]


    Estou usando o Linux centos 7 da hostgator!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.