File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
lib/internal/Magento/Framework/App/Config Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,13 @@ private function getRequest()
91
91
public function getScope ($ scopeType , $ scopeCode = null )
92
92
{
93
93
$ scopeCode = $ this ->_getScopeCode ($ scopeType , $ scopeCode );
94
- // Skip our Magento Scheme detection https and http are in same key space
95
- $ baseUrl = $ this ->getRequest ()->getBaseUrl ();
96
- $ code = $ scopeType . '| ' . $ scopeCode . '| ' . $ baseUrl ;
94
+
95
+ //Key by url to support dynamic {{base_url}} and port assignments
96
+ $ host = $ this ->getRequest ()->getServer ('HTTP_HOST ' );
97
+ $ port = $ this ->getRequest ()->getServer ('SERVER_PORT ' );
98
+ $ path = $ this ->getRequest ()->getBasePath ();
99
+ $ urlInfo = $ host . $ port . trim ($ path , '/ ' );
100
+ $ code = $ scopeType . '| ' . $ scopeCode . '| ' . $ urlInfo ;
97
101
if (!isset ($ this ->_scopes [$ code ])) {
98
102
$ cacheKey = $ this ->_cacheId . '| ' . $ code ;
99
103
$ data = $ this ->_cache ->load ($ cacheKey );
You can’t perform that action at this time.
0 commit comments