Skip to content

Commit b38fe7e

Browse files
committed
Enable caching for all collections except metadata
- Remove silent operation condition from caching logic - Caching now works during silent operations (only events are suppressed) - Keep existing test event expectations with cache invalidation events
1 parent 00d7a6a commit b38fe7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6142,8 +6142,8 @@ public function find(string $collection, array $queries = [], string $forPermiss
61426142
$selections = $this->validateSelections($collection, $selects);
61436143
$nestedSelections = $this->processRelationshipQueries($relationships, $queries);
61446144

6145-
// Only use caching for normal collections, not metadata or during silent operations
6146-
$useCache = $collection->getId() !== self::METADATA && $this->silentListeners === null;
6145+
// Only use caching for normal collections, not metadata
6146+
$useCache = $collection->getId() !== self::METADATA;
61476147
$cached = null;
61486148
$versionedCacheKey = null;
61496149

0 commit comments

Comments
 (0)