• Resolved cometto

    (@cometto)


    Hello

    i have a problem with turning on redis.
    See sceen:
    https://ibb.co/ZGc57Cz

    I think there may be user required.
    My hosting gives me some parameters:
    – port
    – host
    – user
    – mem limit 128 mb
    – connections limit 10000
    – password.

    what should i improve in wp-config.php?
    thanks in advance

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

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

    (@tillkruess)

    That's all, stop editing! Happy blogging.

    You need the read. Move the constants up.

    Thread Starter cometto

    (@cometto)

    @tillkruess

    I did it as you wrot but there is still something wrong with configuration.

    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: 2.0.3
    Credis: Not loaded
    PHP Version: 8.1.11
    Plugin Version: 2.2.2
    Redis Version: Unknown
    Multisite: No
    Metrics: Disabled
    Metrics recorded: 0
    Filesystem: Working
    Global Prefix: "wp_"
    Blog Prefix: "wp_"
    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: []
    Groups Types: {
        "blog-details": "ignored",
        "blog-id-cache": "ignored",
        "blog-lookup": "ignored",
        "global-posts": "ignored",
        "networks": "ignored",
        "rss": "ignored",
        "sites": "ignored",
        "site-details": "ignored",
        "site-lookup": "ignored",
        "site-options": "ignored",
        "site-transient": "ignored",
        "users": "ignored",
        "useremail": "ignored",
        "userlogins": "ignored",
        "usermeta": "ignored",
        "user_meta": "ignored",
        "userslugs": "ignored",
        "redis-cache": "ignored",
        "counts": "ignored",
        "plugins": "ignored",
        "themes": "ignored",
        "blog_meta": "ignored"
    }
    Drop-ins: [
        "advanced-cache.php v by ",
        "maintenance.php v by ",
        "Redis Object Cache Drop-In v2.2.2 by Till Krüss"
    ]
    Thread Starter cometto

    (@cometto)

    @tillkruess

    I put:

    define( 'WP_REDIS_HOST', 'my host' );
    define( 'WP_REDIS_PORT', my port);
    define( 'WP_REDIS_PASSWORD', 'my pass' );
    define( 'WP_REDIS_TIMEOUT', 1 );
    define( 'WP_REDIS_READ_TIMEOUT', 1 );
    // change the database for each site to avoid cache collisions
    define( 'WP_REDIS_DATABASE', 0 );
    // supported clients: <code>phpredis</code>, <code>credis</code>, <code>predis</code> and <code>hhvm</code>
    // define( 'WP_REDIS_CLIENT', 'phpredis' );
    // automatically delete cache keys after 7 days
    // define( 'WP_REDIS_MAXTTL', 60 * 60 * 24 * 7 );
    // bypass the object cache, useful for debugging
    // define( 'WP_REDIS_DISABLED', true );
    Plugin Author Till Krüss

    (@tillkruess)

    Verify that you can connect via redis-cli.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with connection’ is closed to new replies.