So we had a major headache after cloning the live site to staging. First time ever that this was an issue and the only thing changed was having Redis in use (we used OPCache prior to it).
Logins did not work anymore, pages on the live site randomly linked to the staging site and after deleting the staging site the live site was down. Huge mess…
It seemed that while Redis being active while cloning, where the URLs of the staging got changed, Redis on the staging site was writing new entries in the same working folder of Redis that the live site was using.
So how to correctly work with that? Is it enough to flush the cache & deactivate the Redis plugin prior to cloning or should it be deactivated in Cpanel?
