Revert "Soft fail when deleting and no entry found"
This commit is contained in:
parent
f97359706a
commit
8f2110e5da
1 changed files with 0 additions and 4 deletions
4
lib/private/files/cache/cache.php
vendored
4
lib/private/files/cache/cache.php
vendored
|
@ -466,10 +466,6 @@ class Cache {
|
|||
*/
|
||||
public function remove($file) {
|
||||
$entry = $this->get($file);
|
||||
if (!isset($entry['fileid'])) {
|
||||
// perhaps file was deleted in the mean time?
|
||||
return;
|
||||
}
|
||||
$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?';
|
||||
\OC_DB::executeAudited($sql, array($entry['fileid']));
|
||||
if ($entry['mimetype'] === 'httpd/unix-directory') {
|
||||
|
|
Loading…
Reference in a new issue