Merge pull request #18783 from owncloud/revert-18773-fix-useless-deletes

Revert "Soft fail when deleting and no entry found"
This commit is contained in:
Joas Schilling 2015-09-02 19:53:18 +02:00
commit e2cc778947
1 changed files with 0 additions and 4 deletions

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