summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-03 21:12:35 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-03 21:12:35 +0200
commitab56f694160f58f075069560953cba86cdfe5aec (patch)
treea7668e06dd2534a426d58a8716163aac229aa481
parente2969062ca172b46713653ac243bb849a54ca7d7 (diff)
downloadnextcloud-server-ab56f694160f58f075069560953cba86cdfe5aec.tar.gz
nextcloud-server-ab56f694160f58f075069560953cba86cdfe5aec.zip
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.
-rw-r--r--lib/private/cache/file.php5
1 files changed, 0 insertions, 5 deletions
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;