Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @visionoptika,

    according to the error, you’ve configured Redis as cache source. However, your Redis server is configured to require authentication. This, however, is not supported by Cachify, which in the end produces this error.

    If you disable authentication for your Redis server, it should work just fine.

    Best regards,
    Matthias

    Thread Starter Leonidas

    (@visionoptika)

    Thank you very much for your answer. Have a nice day

    Leonidas

    Actually, it is supported. Documentation lacks little bit behind.

    add_filter( 'cachify_redis_servers', function( $server ) {
    // default: $server = [ 'localhost ']

    return [
    '127.0.0.1', // host/ip/path (required)
    6379, // port 6379 by default, -1 for socket
    2.0, // timeout in seconds
    null, // unused
    0, // retry interval in milliseconds
    3.0, // read timeout in seconds
    [ 'auth' => [ 'username', 'password' ] ]
    ];
    } );

    Supporeted since PHPRedis 5.3, see https://github.com/phpredis/phpredis/tree/5.3.7?tab=readme-ov-file#connect-open

    BUT: apparently there’s a bug in v2.4.0, so the last parameter is rejected.
    Validation is also limited to PHPRedis 5.x syntax, not 6.x…

    We will fix this in 2.4.1. (issue #315 (GitHub))

    … and probably also should improve error handling, so it does fail gracefully with an admin notice instead of passing the PHP error. (#316)

    Cheers,
    Stefan

    Issue with config validation is now fixed in 2.4.1 so the example above should work if you require authentication for Redis.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.