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:
parent
9c7da26394
commit
5199f80196
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue