summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-02-14 22:10:09 +0100
committerRobin Appelman <robin@icewind.nl>2020-04-01 14:17:28 +0200
commit5199f8019690eeed2db1be69e3cb6d64a4f08357 (patch)
tree2255e8769432d78544b57b6dda23ca37c0689102 /lib/private/Files/Cache
parent9c7da263949c5e72d6d7aa36b897b112f99ce8f2 (diff)
downloadnextcloud-server-5199f8019690eeed2db1be69e3cb6d64a4f08357.tar.gz
nextcloud-server-5199f8019690eeed2db1be69e3cb6d64a4f08357.zip
call cache->insert directly instead of going trough cache->put first when scanning
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r--lib/private/Files/Cache/Scanner.php2
1 files changed, 1 insertions, 1 deletions
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;