Skip to content

Commit 65352c7

Browse files
committed
B2B-2257: availableStores GraphQl query has no cache identity
1 parent 207c170 commit 65352c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/StoreGraphQl/Model/Resolver/Stores/ConfigIdentity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public function getIdentities(array $resolvedData): array
5050
}
5151
}
5252
$storeGroupCount = count($storeGroups);
53-
if ($storeGroupCount > 1 && $store !== null) {
53+
if ($storeGroupCount > 1) { // the resolved stores for any store groups in a website
5454
$ids[] = sprintf('%s_%s', StoreConfigIdentity::CACHE_TAG, 'website_' . $store->getWebsiteId());
55-
} elseif ($storeGroupCount == 1 && $store !== null) {
55+
} elseif ($storeGroupCount == 1) { // the resolved stores for a particular store group in a website
5656
$ids[] = sprintf(
5757
'%s_%s',
5858
StoreConfigIdentity::CACHE_TAG,

0 commit comments

Comments
 (0)