From: Vincent Petry Date: Thu, 3 Apr 2014 19:12:35 +0000 (+0200) Subject: Do not expire chunks while checking for their existence X-Git-Tag: v7.0.0alpha2~500^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab56f694160f58f075069560953cba86cdfe5aec;p=nextcloud-server.git Do not expire chunks while checking for their existence The expiration should be done by the gc() function on login, not while isComplete() is calling hasKey() for every chunk. --- diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php index be6805a9a57..2fd77c437fe 100644 --- a/lib/private/cache/file.php +++ b/lib/private/cache/file.php @@ -84,11 +84,6 @@ class File { public function hasKey($key) { $storage = $this->getStorage(); if ($storage && $storage->is_file($key)) { - $mtime = $storage->filemtime($key); - if ($mtime < time()) { - $storage->unlink($key); - return false; - } return true; } return false;