Skip to content

Commit 60591ab

Browse files
authored
Merge pull request #584 from utopia-php/fix-global-collections
Prevent reusing same cache key for multiple documents
2 parents cc6538e + e415733 commit 60591ab

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 ($collectionId === self::METADATA && isset($this->globalCollections[$documentId])) {
66826682
$tenantSegment = null;
66836683
}
66846684

0 commit comments

Comments
 (0)