Skip to content

Commit ba26768

Browse files
fix(recent-files): join extended cache only when needed on search
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
1 parent d363057 commit ba26768

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Cache/QuerySearchHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function searchInCaches(ISearchQuery $searchQuery, array $caches): array
159159
|| in_array('upload_time', $requestedFields)
160160
|| in_array('last_activity', $orderFields);
161161

162-
$query = $builder->selectFileCache('file', true);
162+
$query = $builder->selectFileCache('file', $joinExtendedCache);
163163

164164
if (in_array('systemtag', $requestedFields)) {
165165
$this->equipQueryForSystemTags($query, $this->requireUser($searchQuery));

0 commit comments

Comments
 (0)