[4.10] Packages are ignored after clearing cache
Contao 4.10.4, dev environment.
After executing console cache:clear, if I run console contao:migrate, it tries to DROP everything from the database, related to the installed extensions, that was not in the original contao/managed-edition/composer.json. In frontend or backend, I either get errors, or those extensions just missing completely, so basically their dca and configs are being ignored.
This doesn't happen when running either console cache:clear --no-warmup && console cache:warmup or post-install-cmd. In fact, running either of them fixes the broken cache.
It is probably just something wrong on my side and not a bug, which is why I am not opening an issue on Github. I just need help - which way to dig?