diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php index 989e05275b70e60aade0c80f3877714845b929b5..38f88959bd75fe0cbe5391a3706e3ce6c5ecb489 100644 --- a/lib/private/Cache/File.php +++ b/lib/private/Cache/File.php @@ -172,7 +172,9 @@ class File implements ICache { public function gc() { $storage = $this->getStorage(); if ($storage and $storage->is_dir('/')) { - $now = time(); + // extra hour safety, in case of stray part chunks that take longer to write, + // because touch() is only called after the chunk was finished + $now = time() - 3600; $dh = $storage->opendir('/'); if (!is_resource($dh)) { return null;