Thanks!
Local inter-process communication by unix domain sockets should be faster than communication by loopback localhost connections.
But I’d benchmark that to be sure ; )
Thanks for taking the time to answer my question!
I have set this in redis config file
unixsocket /var/run/redis/redis.sock
unixsocketperm 755
when I go to /var/run/redis/ the redis.sock file is there.
Then I added this to wp-config.php
define (‘WP_REDIS_SCHEME’, ‘unix’);
define (‘WP_REDIS_PATH’, ‘/var/run/redis/redis.sock’);
But now the plugin’s setting page says “Not connected”
What am I doing wrong?
I’d recommend you check your log files, or ask your web developer to have a closer look at why the connection is failing.
I am the webdeveloper and server administrator…
I will take a closer look at the log files…
Logs didn’t show anything but I found the culprit.
In Redis config file unixsocketperm 755 should be unixsocketperm 777 otherwise the plugin can’t connect through UNIX sock.
Now everything is working fine 😉
Awesome, glad it’s working!