|
|
|
|
@ -251,10 +251,15 @@ class Cache { |
|
|
|
|
return trim($item, "`"); |
|
|
|
|
}, $queryParts); |
|
|
|
|
$values = array_combine($queryParts, $params); |
|
|
|
|
if (\OC::$server->getDatabaseConnection()->insertIfNotExist('*PREFIX*filecache', $values)) { |
|
|
|
|
if (\OC::$server->getDatabaseConnection()->insertIfNotExist('*PREFIX*filecache', $values, [ |
|
|
|
|
'storage', |
|
|
|
|
'path_hash', |
|
|
|
|
])) { |
|
|
|
|
return (int)\OC_DB::insertid('*PREFIX*filecache'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The file was created in the mean time |
|
|
|
|
$this->update($id, $data); |
|
|
|
|
return $this->getId($file); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|