Revert "Soft fail when deleting and no entry found"

This commit is contained in:
Joas Schilling 2015-09-02 19:52:45 +02:00
parent f97359706a
commit 8f2110e5da

View file

@ -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') {