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.
This commit is contained in:
Vincent Petry 2014-04-03 21:12:35 +02:00
parent e2969062ca
commit ab56f69416
1 changed files with 0 additions and 5 deletions

View File

@ -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;