From: Robin Appelman Date: Fri, 14 Feb 2020 21:10:09 +0000 (+0100) Subject: call cache->insert directly instead of going trough cache->put first when scanning X-Git-Tag: v19.0.0beta1~6^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5199f8019690eeed2db1be69e3cb6d64a4f08357;p=nextcloud-server.git call cache->insert directly instead of going trough cache->put first when scanning Signed-off-by: Robin Appelman --- diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php index 99f334c6350..f2c998eeeed 100644 --- a/lib/private/Files/Cache/Scanner.php +++ b/lib/private/Files/Cache/Scanner.php @@ -292,7 +292,7 @@ class Scanner extends BasicEmitter implements IScanner { $this->cache->update($fileId, $data); return $fileId; } else { - return $this->cache->put($path, $data); + return $this->cache->insert($path, $data); } } else { return -1;