diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index cfadf7ed4ec89..22463cd12253b 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -224,6 +224,7 @@ public function getFolderContentsById($fileId) { $query->selectFileCache() ->whereParent($fileId) ->whereStorageId($this->getNumericStorageId()) + ->setMaxResults(10000) ->orderBy('name', 'ASC'); $metadataQuery = $query->selectMetadata();