Changes only take effect after a few hours when deploying Shopware 6 project

Please see symfony - Changes only take effect after a few hours when deploying Shopware 6 project - Stack Overflow for the full writeup.

Any feedback would be greatly appreciated!

The problem has been solved! It was an opcache issue.