Support » Plugin: Redis Object Cache » possible – can I do this as a non-admin or workaround?

  • Resolved Jonathan Jewell

    (@hyperpolymath)


    This is an error message that I am getting through the app (I am not sure how to add a screenshot here – there’s no obvious way to do it in this form editor). I have put a link to the screenshot on Snipboard.io see link above.

    i have a hosting account with a provider that is for hosting, which gives me non-admin access through SFTP/SSH, chrooted. I have full access to WordPress though.

    I wanted to know if there is a workaround for the issue here, maybe through another plugin, or some kind of REST/API/XML-RPC approach, or something imaginative using an external service, like CloudFlare, Litespeed or a WordPress caching plugin, etc.

    I cannot get them to install the php module for redis/memcache, or anything more than the base configuration for PHP, since this is a package that is not tailored but a kind of generic set. Sorry, not my specialist area, so some of my thoughts/suggestions in that list might be irrelevant or ludicrous.

    I am using PHP8.1.3, using WordPress 5.9.2, Apache, and can try to answer any other question you might have. I am guessing (from the comment on the screenshot about speaking to my host) that there is not probably not an alternative thing, but I thought I would ask in case.

    Thanks!

    NOTE:

    Whilst I am willing to take risks on what I have access to, since i do backup and willing to ‘change things’, there is a lot of stuff I do not have access to that I do know about, but I am definitely not going to be able to do expert hacks like you lot can! Indeed, if it’s complex, would be helpful to get a script for it maybe? But I’m sure if this was possible, you would have implemented something, so this is probably a bit optimistic.

    The page I need help with: [log in to see the link]

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

    (@tillkruess)

    The error message in the screenshot you posted is coming from Query Monitor, not this plugin.

    Do you have a question in regards to this plugin?

    Thread Starter Jonathan Jewell

    (@hyperpolymath)

    Hmm, that’s odd. that plugin (QM), unless I have completely misunderstood it, generated this information relating to this plugin (Redis) and its performance. But if that is not right, I apologise.

    The Redis page has this: 
    
    Status:	 Not connected
    Drop-in:	 Valid
    Filesystem:	 Writeable

    AND THEN, your diagnostics report this:

    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
    Relay: Not loaded
    Predis: 1.1.9
    Credis: Not loaded
    PHP Version: 8.1.3
    Plugin Version: 2.0.23
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: null
    Filesystem: Working
    Global Prefix: "zcIwjRpM"
    Blog Prefix: "zcIwjRpM"
    WP_REDIS_PREFIX: "bpFkx7r: IVWt$l>SsbuX9$oL?mfCEA(Q*V*;FJ>d|}c1>Gv0yxYE_k8y7sf[2@j"
    WP_CACHE_KEY_SALT: "bpFkx7r: IVWt$l>SsbuX9$oL?mfCEA(Q*V*;FJ>d|}c1>Gv0yxYE_k8y7sf[2@j"
    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: [
        "Query Monitor Database Class v by ",
        "Redis Object Cache Drop-In v2.0.23 by Till Krüss"
    ]

    The three here come from additional logging by the QM monitor, which, even if it is not due to your plugin, is attributing the problem to your plugin, and might be of interest to you. If not, no problem, I’m not blaming, just trying to figure out options.

    Warning stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) 1 –
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:127
    stream_socket_client()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:127
    Predis\C\StreamConnection->createStreamSocket()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:178
    Predis\C\StreamConnection->tcpStreamInitializer()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:100
    Predis\C\StreamConnection->createResource()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:81
    Predis\C\AbstractConnection->connect()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:258
    Predis\C\StreamConnection->connect()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php:215
    Predis\Client->connect()
    wp-content/object-cache.php:802
    WP_Object_Cache->connect_using_predis()
    wp-content/object-cache.php:495
    WP_Object_Cache->__construct()
    wp-content/plugins/redis-cache/includes/diagnostics.php:32
    Rhubarb\R\U\Tab->display()
    wp-content/plugins/redis-cache/includes/ui/settings.php:59
    Rhubarb\R\Plugin->show_admin_page()
    wp-includes/class-wp-hook.php:307
    do_action(‘settings_page_redis-cache’)
    wp-admin/admin.php:259
    Plugin: redis-cache
    Warning Trying to access array offset on value of type null 1 –
    wp-content/object-cache.php:2083
    WP_Object_Cache->info()
    wp-content/plugins/redis-cache/includes/class-qm-collector.php:55
    Rhubarb\R\QM_Collector->process()
    wp-content/plugins/query-monitor/classes/Collectors.php:86
    do_action(‘shutdown’)
    wp-includes/load.php:1100
    shutdown_action_hook()
    Unknown location`

    Warning stream_socket_client(): Unable to connect to tcp://127.0.0.1:6379 (Connection refused) 1 –
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:127
    stream_socket_client()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:127
    Predis\C\StreamConnection->createStreamSocket()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:178
    Predis\C\StreamConnection->tcpStreamInitializer()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:100
    Predis\C\StreamConnection->createResource()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:81
    Predis\C\AbstractConnection->connect()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php:258
    Predis\C\StreamConnection->connect()
    wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php:215
    Predis\Client->connect()
    wp-content/object-cache.php:802
    WP_Object_Cache->connect_using_predis()
    wp-content/object-cache.php:495
    WP_Object_Cache->__construct()
    wp-content/plugins/redis-cache/includes/diagnostics.php:32
    Rhubarb\R\U\Tab->display()
    wp-content/plugins/redis-cache/includes/ui/settings.php:59
    Rhubarb\R\Plugin->show_admin_page()
    wp-includes/class-wp-hook.php:307
    do_action(‘settings_page_redis-cache’)
    wp-admin/admin.php:259
    Plugin: redis-cache

    Warning Trying to access array offset on value of type null 1 –
    wp-content/object-cache.php:2083
    WP_Object_Cache->info()
    wp-content/plugins/redis-cache/includes/class-qm-collector.php:55
    Rhubarb\R\QM_Collector->process()
    wp-content/plugins/query-monitor/classes/Collectors.php:86
    do_action(‘shutdown’)
    wp-includes/load.php:1100
    shutdown_action_hook()
    Unknown location`

    Plugin Author Till Krüss

    (@tillkruess)

    Hi!

    
    Connection refused [tcp://127.0.0.1:6379]
    

    This means there is no Redis Server running at 127.0.0.1:6379. You hosting provider can assist you with getting Redis Server up and running.

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