Skip to content

Commit 86d49df

Browse files
committed
Prevent reusing same cache key for multiple documents
1 parent cc6538e commit 86d49df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6678,7 +6678,7 @@ public function getCacheKeys(string $collectionId, ?string $documentId = null, a
66786678

66796679
$tenantSegment = $this->adapter->getTenant();
66806680

6681-
if (isset($this->globalCollections[$collectionId])) {
6681+
if (isset($this->globalCollections[$collectionId]) && $collectionId !== self::METADATA) {
66826682
$tenantSegment = null;
66836683
}
66846684

0 commit comments

Comments
 (0)