I created a clone of my live project and named it
Then I changed the database credentials in
app/etc/env.php to my new live_clone database and
imported the live database to it.
Then I opened the database with phpmyadmin and changed the BASE URL's to the live_clone domain.
I did this often and it always worked flawlessly.
Then I changed to deployment mode "production".
However, if I execute
php bin/magento cache:flush on live_clone, then the cache is getting flushed for my live project instead of for the project live_clone. If I execute
grunt clean on live_clone then users get redirected to live_clone instead of live!
What is going on?