Skip to content

Commit 78818e8

Browse files
pe7errdeutzHackwar
authored
[4.4] Cache: Fix for counting the Number of Files correctly (#43986)
Co-authored-by: Robert Deutz <[email protected]> Co-authored-by: Hannes Papenberg <[email protected]>
1 parent da9ed62 commit 78818e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/src/Cache/Storage/FileStorage.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ public function getAll()
158158
$item = new CacheStorageHelper($folder);
159159

160160
foreach ($files as $file) {
161+
// Do not include index.html with the Number of Files
162+
if ($file === 'index.html') {
163+
continue;
164+
}
165+
161166
$item->updateSize(filesize($path . '/' . $folder . '/' . $file));
162167
}
163168

0 commit comments

Comments
 (0)