mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
add partial file data to the result of Cache::get
This commit is contained in:
parent
93292516d9
commit
153cd802a9
1 changed files with 7 additions and 1 deletions
8
lib/files/cache/cache.php
vendored
8
lib/files/cache/cache.php
vendored
|
|
@ -31,7 +31,13 @@ class Cache {
|
|||
$query = \OC_DB::prepare(
|
||||
'SELECT `id`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`
|
||||
FROM `*PREFIX*filecache` ' . $where);
|
||||
$result=$query->execute($params);
|
||||
$result = $query->execute($params);
|
||||
|
||||
//merge partial data
|
||||
$key = $file->getStorageId() . '::' . $file->getInternalPath();
|
||||
if (isset(self::$partial[$key])) {
|
||||
$result=array_merge($result, self::$partial[$key]);
|
||||
}
|
||||
return $result->fetchRow();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue