Browse Source

remove unneeded is_dir from file cache gc

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v14.0.0beta1
Robin Appelman 6 years ago
parent
commit
07e5b30b90
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/Cache/File.php

+ 1
- 1
lib/private/Cache/File.php View File

@@ -174,7 +174,7 @@ class File implements ICache {
*/
public function gc() {
$storage = $this->getStorage();
if ($storage and $storage->is_dir('/')) {
if ($storage) {
// 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;

Loading…
Cancel
Save