From 5199f8019690eeed2db1be69e3cb6d64a4f08357 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 14 Feb 2020 22:10:09 +0100 Subject: [PATCH] call cache->insert directly instead of going trough cache->put first when scanning Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Scanner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5