• Resolved amexlive

    (@amexlive)


    I have the following problem. I have registered a database on REDIS.IO and have the necessary information to connect the plugin to the database in REDIS.IO:

    • Host
      define( ‘WP_REDIS_HOST’, ‘redishost.redis-cloud.com’ );
    • Port
      define( ‘WP_REDIS_PORT’, 19xxx );
    • Password
      define( ‘WP_REDIS_PASSWORD’, ‘2IW5xxxxxxxxxxxxxxxxxxxxxxxxx’ );

      (the showed login information is only as example)
    • I configure this information as follows and add it to the wp-config.php file in WordPress. I restart the “Redis Object Cache” plugin by deactivating and reactivating it. Then, I go to Settings > Redis, but it still displays the message “Redis is unreachable: Connection timed out [tcp://127.0.0.1:6379]” even though I have set the necessary configurations in wp-config.php.

    Could you please let me know what I might be doing wrong and how I can change the settings to connect the “Redis Object Cache” plugin to redis.io?

    Thank you in advance for your attention and assistance.

    Best regards,
    Amex

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

    (@tillkruess)

    Make sure you set the WP_REDIS_* constants at the very top of your config.

    Thread Starter amexlive

    (@amexlive)

    Hello Mr. Krüss and thank you for the information.
    I’ve add the constants very top of the config file wp-config.php but the result is the same.

    <?php
    define( ‘WP_CACHE’, true ); // Added by WP Rocket

    /** Въведете хоста от Redis.io
    define( ‘WP_REDIS_HOST’, ‘redis-19708xxxxxxxxxxxxxxx.redns.redis-cloud.com’ );

    /** Въведете порта от Redis.io
    define( ‘WP_REDIS_PORT’, 19708 );

    /** Въведете паролата от Redis.io
    define( ‘WP_REDIS_PASSWORD’, ‘2IW5bfDiGCRAOxxxxxxxxxxxxxxxxxxxxxx’ );

    /** 1 second timeout
    define(‘WP_REDIS_TIMEOUT’, 1);

    /** 1 second read timeout
    define(‘WP_REDIS_READ_TIMEOUT’, 1);

    /** Choose the database index, often 0 by default
    define(‘WP_REDIS_DATABASE’, 0);

    /**

    • The base configuration for WordPress
      *
    • The wp-config.php creation script uses this file during the
    • installation. You don’t have to use the web site, you can
    • copy this file to “wp-config.php” and fill in the values.
      *
    • This file contains the following configurations:
      *
    • * MySQL settings
    • * Secret keys
    • * Database table prefix
    • * ABSPATH
      *
    • @link https://codex.www.ads-software.com/Editing_wp-config.php
      *
    • @package WordPress
      */
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.