Skip to content

Commit 59d1e79

Browse files
author
nmalevanec
committed
ENGCOM-2444: Resolve incorrect scope code selection when the requested scopeCode is null #16940
1 parent 2b88239 commit 59d1e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Store/Model/StoreManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ public function getWebsites($withDefault = false, $codeKey = false)
234234
public function reinitStores()
235235
{
236236
$this->currentStoreId = null;
237-
$this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, [StoreResolver::CACHE_TAG, Store::CACHE_TAG]);
238-
$this->scopeConfig->clean();
239237
$this->storeRepository->clean();
240238
$this->websiteRepository->clean();
241239
$this->groupRepository->clean();
240+
$this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, [StoreResolver::CACHE_TAG, Store::CACHE_TAG]);
241+
$this->scopeConfig->clean();
242242
}
243243

244244
/**

0 commit comments

Comments
 (0)