Commit 0d318118 authored by Léo Prada's avatar Léo Prada Committed by Ken Rickard
Browse files

Issue #3272841 by Nixou, agentrickard: Significant database request increase...

Issue #3272841 by Nixou, agentrickard: Significant database request increase following the switch to drupal 9
parent 1b8a69c2
Loading
Loading
Loading
Loading
+6 −2
Changes for domain_config/src/DomainConfigOverrider.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -136,11 +136,15 @@ class DomainConfigOverrider implements ConfigFactoryOverrideInterface {
          $config_name = $this->getDomainConfigName($name, $this->domain);
          // Check to see if the config storage has an appropriately named file
          // containing override data.
          if ($override = $this->storage->read($config_name['langcode'])) {
          if (in_array($config_name['langcode'], $this->storage->listAll('domain.config.', TRUE))
            && ($override = $this->storage->read($config_name['langcode']))
          ) {
            $overrides[$name] = $override;
          }
          // Check to see if we have a file without a specific language.
          elseif ($override = $this->storage->read($config_name['domain'])) {
          elseif (in_array($config_name['domain'], $this->storage->listAll('domain.config.', TRUE))
            && ($override = $this->storage->read($config_name['domain']))
          ) {
            $overrides[$name] = $override;
          }