Skip to content

Commit

Permalink
ENGCOM-2444: Resolve incorrect scope code selection when the requeste…
Browse files Browse the repository at this point in the history
…d scopeCode is null #16940
  • Loading branch information
nmalevanec committed Oct 22, 2018
1 parent 2b88239 commit 59d1e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Store/Model/StoreManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ public function getWebsites($withDefault = false, $codeKey = false)
public function reinitStores()
{
$this->currentStoreId = null;
$this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, [StoreResolver::CACHE_TAG, Store::CACHE_TAG]);
$this->scopeConfig->clean();
$this->storeRepository->clean();
$this->websiteRepository->clean();
$this->groupRepository->clean();
$this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, [StoreResolver::CACHE_TAG, Store::CACHE_TAG]);
$this->scopeConfig->clean();
}

/**
Expand Down

0 comments on commit 59d1e79

Please sign in to comment.