Wordpress LScache Plugin: Redis Connection Test: Failed
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi there, thanks for the great plugin. Im new to object cache and Redis, couldnt make the connection test pass. Here is the screenshot of the failed connection test: https://imgur.com/AkLpYp7 . Here is the result of the service redis status : service redis status ? redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service enabled vendor preset: enabled) Active: active (running) since Sat 2019-08-24 00:11:03 CST 4s ago Docs: http://redis.io/documentation, man:redis-server(1) Process: 28764 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS) Process: 28768 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS) Main PID: 28784 (redis-server) Tasks: 4 (limit: 1152) CGroup: /system.slice/redis-server.service +-28784 /usr/bin/redis-server 127.0.0.1:6379 Aug 24 00:11:03 shcces2 systemd[1]: Starting Advanced key-value store... Aug 24 00:11:03 shcces2 systemd[1]: redis-server.service: Cant open PID file /var/run/redis/redis-server.pid (yet?) after start: No such file or directory Aug 24 00:11:03 shcces2 systemd[1]: Started Advanced key-value store. I notice the Cant open PID file /var/run/redis/redis-server.pid error, but when I look into the /var/run folder, I found: drwxr-sr-x 2 redis www-data 80 Aug 24 00:11 redis/ inside it, there is: -rw-rw---- 1 redis www-data 6 Aug 24 00:11 redis-server.pid srwxrwxr-x 1 redis www-data 0 Aug 24 00:11 redis-server.sock= I tried to remove the redis folder and restart redis. The folder will be re-generated with the same content. Is this the cause? How can I fix it? Here is the result of: ss -lptun | grep 6379 ss -lptun | grep 6379 tcp LISTEN 0 128 127.0.0.1:6379 0.0.0.0: users:(( redis-server ,pid=28784,fd=6)) tcp LISTEN 0 128 [::1]:6379 [::]: users:(( redis-server ,pid=28784,fd=7)) telnet localhost 6379 and redis-cli ping work fine. Hi, If you run redis-cli in SSH, does it connect ? Best regards, Yes it does: redis-cli 127.0.0.1:6379> ping PONG Hi, Then please create a PHP file with following code and see what it says. Best regards, Server is running: +PONG Hi, Now that is weird , could you please check if you have opcache on ? If so , try use LSCWP dropdown menu , purge opcache and see how it goes. Also may I know what is your configuration of Redis in there ? 127.0.0.1 6379 empty user, empty password Best regards, I tried to purge all cache, doesnt help. And here is the conf file: /etc/redis/redis.conf https://github.com/ZacharyChim/web/blob/master/redis.conf Hi, Could you please do me a screenshot for that Object cache page ? Best regards, Here is the screenshot: https://imgur.com/oUF4F41 https://imgur.com/2QCtm0J https://imgur.com/FWwJ764 https://imgur.com/y95ukHn Hi, https://imgur.com/oUF4F41 change host to 127.0.0.1 Best regards, It works. Thank you very much.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference