• Hubert Nguyen

    (@hubertnguyen)


    Hello, I’m using this plugin in production, and it works generally well.

    It is connected to an external instance, and wp-config.php is configured to reflect that. Connection is fine, and I can see data being read/written to the Redis instance.

    However, the PHP error log shows that from time to time, the plugin tried to connect via 127.0.0.1 and it leads to an error:

    RedisException: Connection refused in /web/content/wp-content/object-cache.php:492

    The call stack is:

    #0 /web/content/wp-content/object-cache.php(492): Redis->connect(‘127.0.0.1’, 6379, 5, NULL, NULL, 5)
    #1 /web/content/wp-content/object-cache.php(185): WP_Object_Cache->__construct(true)
    #2 /web/content/wp-includes/load.php(579): wp_cache_init()
    #3 /web/content/wp-settings.php(123): wp_start_object_cache()
    #4 /web/content/wp-admin/setup-config.php(33): require(‘/mnt/stor4-wc2-…’)
    #5 {main}

    At the moment, I only have a dozen such errors in the log, so perhaps it only happens in the admin interface. The site has tens of thousands of visits a day, so it doesn’t seem like this is being triggered in the front-end.

    Thank you,

  • The topic ‘Redis attempts to connect with 127.0.0.1 despite wp-config.php settings’ is closed to new replies.