v2-docs icon indicating copy to clipboard operation
v2-docs copied to clipboard

Update redis-queue-for-multiple-sites.md

Open studio1902 opened this issue 5 years ago • 4 comments

Using REDIS_DATABASE=0 won't work.

studio1902 avatar Jan 22 '20 08:01 studio1902

Important edit to prevent issues. Can you please merge this one?

studio1902 avatar Feb 29 '20 15:02 studio1902

actually... REDIS_DATABASE="0" would solve the issue... or using REDIS_DATABASE=1 would as well.

The issue is that 0 just gets evaluated as false which ends up passing an empty string to the predis client. REDIS_DATABASE = 0 gets turned into "database":"" and gives ERR invalid DB index REDIS_DATABASE = "0" results in "database":"0" and works

jsblair9 avatar Jul 21 '20 17:07 jsblair9

Also @studio1902 didnt mean to be snarky! I'm pretty sure I wrote this one in existence in the first place so the error is entirely mine!

jsblair9 avatar Jul 23 '20 20:07 jsblair9

Of course not! No worries 😀. Need to update the pr then. Vacation mode atm.

studio1902 avatar Jul 23 '20 20:07 studio1902