diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 7b42cc2aa5704..21c6a54a81f81 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -781,7 +781,9 @@ public function correctFolderSize($path, $data = null) { if ($parent === '.' or $parent === '/') { $parent = ''; } - $this->correctFolderSize($parent); + if ($this->getStatus($parent) !== self::SHALLOW) { + $this->correctFolderSize($parent); + } } }