Skip to content
Snippets Groups Projects
Commit 153cd802 authored by Robin Appelman's avatar Robin Appelman
Browse files

add partial file data to the result of Cache::get

parent 93292516
Branches
No related tags found
No related merge requests found
......@@ -32,6 +32,12 @@ class Cache {
'SELECT `id`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`
FROM `*PREFIX*filecache` ' . $where);
$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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment