• Resolved DCLVBS

    (@decalvibes)


    Hi there,

    I’d like to use the Redis object cache. I already enabled “redis” at the PHP Settings within cPanel (shared hosting). But the connection test is still showing “failed”.

    How to fix this issue? The hosting provider let me know that everything is active from their side.

    Br, Alex

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    besides the extension , you will also need to have redis server process running

    you can verify by below php script:

    < ? php
    $redis = new Redis();
    $redis->connect('127.0.0.1', 6379);
    $res = $redis->ping();
    echo $res;

    please see what it returns

    best regards,

    Thread Starter DCLVBS

    (@decalvibes)

    Hi @qtwrk

    thank you so much for your quick reply!
    I already got back in touch with my shared hosting provider regarding your response. They informed me now that they do not have such a process for Shared Hosting services.

    But their servers are running on LiteSpeed and object cache is supported. Despite the failed connection to Redis or Memcached, I can still use the object cache with LiteSpeed cache, they told me.

    Can you confirm that the enabled object cache is working although the LS Cache Plugin shows no connection to redis or memcached?

    The object cache file under public_html/wp-content exists and was last updated at around 12 a.m. within public_html.

    I am looking forward to hearing from you soon.
    Thank you for your efforts in advance!
    Br, Alex

    Plugin Support qtwrk

    (@qtwrk)

    no , if they don’t have redis process, then your object cache won’t work

    it needs that process to store the object

    it is better to disable object cache if connection failed , so plugin won’t try to connect each time a request is coming in which is perfectly waste of itme.

    Thread Starter DCLVBS

    (@decalvibes)

    @qtwrk

    well thats good to know!
    As redis or memcached is not available for my shared hosting, I noticed that the plugin “docket cache” offers an object cache-function without using redis or memcached.

    One last question: Would you recommend using this plugin together with LS Cache Plugin – whose object cache is disabled?

    thank you so much for your great support!
    Br, Alex

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes , feel free to give it a try , just please remember set OC off at LiteSpeed plugin side.

    Thread Starter DCLVBS

    (@decalvibes)

    i didn’t expect this superquick response ??
    yes LiteSpeeds’ OC is set to off ??
    thanks @qtwrk !

    Have a nice day and stay safe!
    I’ll gonna mark this topic as solved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redis Object Cache – Connection test failed’ is closed to new replies.