Skip to content

Commit c510fd2

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-81469: Cached Config is Different From DB
1 parent cbea532 commit c510fd2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/internal/Magento/Framework/App/Config/MetadataConfigTypeProcessor.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,14 @@ private function processScopeData(
114114
$scopeCode = null
115115
) {
116116
foreach ($this->_metadata as $path => $metadata) {
117-
$configPath = $this->configPathResolver->resolve($path, $scope, $scopeCode);
118-
if (!empty($this->configSource->get($configPath))) {
119-
continue;
117+
try {
118+
$configPath = $this->configPathResolver->resolve($path, $scope, $scopeCode);
119+
if (!empty($this->configSource->get($configPath))) {
120+
continue;
121+
}
122+
} catch (\Throwable $exception) {
123+
//Failed to load scopes or config source, perhaps config data received is outdated.
124+
return $data;
120125
}
121126
/** @var \Magento\Framework\App\Config\Data\ProcessorInterface $processor */
122127
$processor = $this->_processorFactory->get($metadata['backendModel']);

0 commit comments

Comments
 (0)