FAQ. The REDIS database used by another copy of the USERSIDE EN

Материал из WiKi - UserSide

en | ru

When using multiple copies of USERSIDE on the same host, there is often the problem of mistakenly using the same Redis database for multiple copies.

This causes the cached data between the two versions to overlap and the changes made in one copy are also displayed in the other.

To avoid these errors we have mapped the Redis database to a specific system URL, so when you try to use the same database on another copy (with a different URL) you will get an error:

The REDIS database number <0> used by another copy of the USERSIDE with URL http://another.userside.net

You can get this error either in the installer or in the web application. It means that when working with the database specified in the configuration file, a difference has been detected between the current system URL and the one to which the Redis database is assigned.

If you really forgot to change the database for a copy, the solution is to use a different database (numbers 0-16 by default) for each of your copies.

However if you changed the URL for a particular installation (e.g. from http to https or whatever), you may just need to reset the Redis database binding to the old URL. To do this, run the command:

sudo -u www-data php userside_install.phar remove_cached_url

This security measure is informational and cannot protect you from using the same Redis database on different copies if you have deliberately removed the binding.