Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

Conversation

studio1902
Copy link
Contributor

Using REDIS_DATABASE=0 won't work.

Using REDIS_DATABASE=0 won't work.
@studio1902
Copy link
Contributor Author

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

@jsblair9
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

studio1902 commented Jul 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants