Skip to content

Commit 3fb2264

Browse files
committed
MAGE-1083 Apply scoping per code review
1 parent 6080ccc commit 3fb2264

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Model/Cache/Product/IndexCollectionSize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function isCacheAvailable(): bool
5252

5353
protected function getCacheKey(int $storeId): string
5454
{
55-
return sprintf('%s_%d', Indexer::TYPE_IDENTIFIER, $storeId);
55+
return sprintf('%s_%s_%d', Indexer::TYPE_IDENTIFIER, 'product', $storeId);
5656
}
5757

5858
public function clear(?int $storeId = null): void

Service/Product/IndexBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function buildIndex(int $storeId, ?array $entityIds, ?array $options): vo
100100
$storeId,
101101
$collection,
102102
$options['page'] ?? 1,
103-
$options['pageSize'] ?? $this->configHelper->getNumberOfElementByPage(),
103+
$options['pageSize'] ?? $this->configHelper->getNumberOfElementByPage($storeId),
104104
$entityIds
105105
);
106106

0 commit comments

Comments
 (0)