Closed
Description
Steps to reproduce:
-
Disable a cache (full page cache in backend)
-
Now the cache settings are written to
env.php
-
On the next page view, I get the following error:
exception 'Exception' with message 'Key collision! The following keys occur in multiple config files: cache_types ' in /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/DeploymentConfig/Reader.php:91 Stack trace: #0 /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/DeploymentConfig.php(130): Magento\Framework\App\DeploymentConfig\Reader->load() #1 /home/me/workspace/example.com/public/lib/internal/Magento /Framework/App/DeploymentConfig.php(72): Magento\Framework\App\DeploymentConfig->load() #2 /home/me/workspace/example.com /public/lib/internal/Magento/Framework/App/ObjectManagerFactory.php(112): Magento\Framework\App\DeploymentConfig->get() #3 /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/Bootstrap.php(384): Magento\Framework\App \ObjectManagerFactory->create(Array) #4 /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/Bootstrap.php(231): Magento\Framework\App\Bootstrap->initObjectManager() #5 /home/me/workspace/example.com/public/index.php(38): Magento\Framework\App\Bootstrap->createApplication('Magento\\Framewo...') #6 {main}
What I saw is, that the cache_types section is in env.php
as well as config.php
. I actually was expecting, that config file merging / overwriting of values should work?