statamic / v2-docs

Statamic v2 Documentation
https://v2.statamic.com
54 stars 133 forks source link

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

Open studio1902 opened 4 years ago

studio1902 commented 4 years ago

Using REDIS_DATABASE=0 won't work.

studio1902 commented 4 years ago

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

jsblair9 commented 4 years ago

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 commented 4 years ago

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!

studio1902 commented 4 years ago

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