Viewing 1 replies (of 1 total)
  • In file advanced-cache.php you can replace this line

    $connect = $redis->pconnect( self::$redis_host);

    whith this

    `if ( self::$redis_port == 0) {
    $connect = $redis->pconnect( self::$redis_host);
    } else {
    $connect = $redis->connect( self::$redis_host, self::$redis_port );
    }`

    and in configuration file redis-page-cache-config.php set:

    $redis_page_cache_config['redis_host'] = '/var/run/redis/redis.sock'; with your own path to socket and $redis_page_cache_config['redis_port'] = 0;

    • This reply was modified 8 years, 2 months ago by lofesa.
Viewing 1 replies (of 1 total)
  • The topic ‘Add support to connect Redis via unix domain socket’ is closed to new replies.