Skip to content

Commit def8411

Browse files
committed
Store Url fixes
1 parent b2903a5 commit def8411

File tree

2 files changed

+17
-1
lines changed
  • app/code/Magento/Store/Model
  • lib/internal/Magento/Framework/App/Request

2 files changed

+17
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Magento\Framework\DataObject\IdentityInterface;
1818
use Magento\Framework\Filesystem;
1919
use Magento\Framework\Model\AbstractExtensibleModel;
20+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
2021
use Magento\Framework\Url\ModifierInterface;
2122
use Magento\Framework\Url\ScopeInterface as UrlScopeInterface;
2223
use Magento\Framework\UrlInterface;
@@ -43,7 +44,8 @@ class Store extends AbstractExtensibleModel implements
4344
AppScopeInterface,
4445
UrlScopeInterface,
4546
IdentityInterface,
46-
StoreInterface
47+
StoreInterface,
48+
ResetAfterRequestInterface
4749
{
4850
/**
4951
* Store Id key name
@@ -1421,4 +1423,17 @@ public function __debugInfo()
14211423
{
14221424
return [];
14231425
}
1426+
1427+
/**
1428+
* @inheritDoc
1429+
*/
1430+
public function _resetState(): void
1431+
{
1432+
$this->_baseUrlCache = [];
1433+
$this->_configCache = null;
1434+
$this->_configCacheBaseNodes = [];
1435+
$this->_dirCache = [];
1436+
$this->_urlCache = [];
1437+
$this->_baseUrlCache = [];
1438+
}
14241439
}

lib/internal/Magento/Framework/App/Request/Http.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,5 +458,6 @@ public function _resetState(): void
458458
$this->headers = null;
459459
$this->metadata = [];
460460
$this->content = '';
461+
$this->distroBaseUrl = null;
461462
}
462463
}

0 commit comments

Comments
 (0)