summaryrefslogtreecommitdiffstats
path: root/lib/private/Cache
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-05-24 14:24:10 +0200
committerRobin Appelman <robin@icewind.nl>2018-05-24 14:24:10 +0200
commit07e5b30b90f176acbf78396f6b9da4c2c941d2c8 (patch)
tree775f2de9fc91d948dfbb30ce782195d2e118c523 /lib/private/Cache
parentfd4a7bf72a0c8a69325b1d63e6983021ac6651f8 (diff)
downloadnextcloud-server-07e5b30b90f176acbf78396f6b9da4c2c941d2c8.tar.gz
nextcloud-server-07e5b30b90f176acbf78396f6b9da4c2c941d2c8.zip
remove unneeded is_dir from file cache gc
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Cache')
-rw-r--r--lib/private/Cache/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php
index 7d2d468ec2f..fdf7606de0f 100644
--- a/lib/private/Cache/File.php
+++ b/lib/private/Cache/File.php
@@ -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;