call cache->insert directly instead of going trough cache->put first when scanning

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-02-14 22:10:09 +01:00
parent 9c7da26394
commit 5199f80196
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 1 additions and 1 deletions

View File

@ -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;