• Resolved Anonymous User 7326277

    (@anonymized-7326277)


    I have this weird issue after changing way plugin connects to the Redis. I’ve placed following two entries in wp-config.php file:

    define( 'WP_REDIS_SCHEME', 'unix' );
    define( 'WP_REDIS_PATH', '/var/run/redis/redis.sock' );

    When checking status via wp-cli utility I’m getting following result:

    $ wp redis status
    Status: Connected
    Client: PECL Extension (v3.0.0)

    But in website interface it says:

    Not Connected

    Any ideas or suggestions what to check?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Anonymous User 7326277

    (@anonymized-7326277)

    Ok, I think it may just be an issue with plugin itself. I’ve manually updated following file:

    wp-content/object-cache.php

    that is generated by update-dropin command and changed:

                    $parameters = array(
                            //'scheme' => 'tcp',
                            //'host' => '127.0.0.1',
                            //'port' => 6379
                            'scheme' => 'unix',
                            'path' => '/var/run/redis/redis.sock',
                    );

    It now reports as connected and works normally. How can I check why is plugin, when activating, failing to detect settings?

    Plugin Author Till Krüss

    (@tillkruess)

    The only reason for the plugin not to detect settings is if you define them too late in your wp-config.php file, make sure you set them before this comment:

    /* That's all, stop editing! Happy blogging. */
    
    Thread Starter Anonymous User 7326277

    (@anonymized-7326277)

    So it was PEBKAC after all ?? Thank you for your support, this resolved the issue. You should consider adding that as a special note to https://www.ads-software.com/plugins/redis-cache/other_notes/

    Plugin Author Till Krüss

    (@tillkruess)

    Great, glad you solved it. Feel free to submit any changes on GitHub: https://github.com/tillkruss/redis-cache

    … sorry fixed ??

    • This reply was modified 7 years, 4 months ago by computersalat.
Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Status: Not connected’ is closed to new replies.