Skip to content

Commit cf200f2

Browse files
committed
Merge branch 'MC-18726' into MC-18726-and-18727
2 parents f087565 + 3a700a6 commit cf200f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ public function __construct(
3737
}
3838

3939
/**
40+
* Update version of private content on each store switch.
41+
*
4042
* @param StoreInterface $fromStore store where we came from
4143
* @param StoreInterface $targetStore store where to go to
4244
* @param string $redirectUrl original url requested for redirect after switching
45+
*
4346
* @return string redirect url
4447
* @throws CannotSwitchStoreException
4548
*/
@@ -53,7 +56,7 @@ public function switch(StoreInterface $fromStore, StoreInterface $targetStore, s
5356
->setHttpOnly(false);
5457
$this->cookieManager->setPublicCookie(
5558
\Magento\Framework\App\PageCache\Version::COOKIE_NAME,
56-
'should_be_updated',
59+
\uniqid('updated-', true),
5760
$publicCookieMetadata
5861
);
5962
} catch (\Exception $e) {

0 commit comments

Comments
 (0)