summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-04 17:18:54 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-04 17:18:54 +0200
commit0597c5226a24267d6d945dd5f42f3dc9d60c4c0e (patch)
tree000b33876372cd5db9c3b4128ef6d5bc77574fd5 /lib
parent09ac61f53b350a9045ee84bc291d9de5904a19b8 (diff)
parentab56f694160f58f075069560953cba86cdfe5aec (diff)
downloadnextcloud-server-0597c5226a24267d6d945dd5f42f3dc9d60c4c0e.tar.gz
nextcloud-server-0597c5226a24267d6d945dd5f42f3dc9d60c4c0e.zip
Merge pull request #8039 from owncloud/chunking-removeexpireinhaskey
Do not expire chunks while checking for their existence
Diffstat (limited to 'lib')
-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;