From 8f2110e5dae67b23ff2454051c20cf843cb37755 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 2 Sep 2015 19:52:45 +0200 Subject: [PATCH] Revert "Soft fail when deleting and no entry found" --- lib/private/files/cache/cache.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 274d97822f..8cf097421d 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -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') {