diff options
Diffstat (limited to 'lib/classes/cache/FileCache.php')
| -rw-r--r-- | lib/classes/cache/FileCache.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/classes/cache/FileCache.php b/lib/classes/cache/FileCache.php index d760f08..55b3667 100644 --- a/lib/classes/cache/FileCache.php +++ b/lib/classes/cache/FileCache.php @@ -188,11 +188,16 @@ class FileCache extends Cache */ public function getStats(): array { + $count = 0; + foreach (@glob($this->dir . '*', GLOB_ONLYDIR) as $current_dir){ + $count += count(@glob("{$current_dir}/*")); + } + return [ __CLASS__ => [ 'name' => _('Anzahl Einträge'), - 'value' => \DBManager::get()->fetchColumn("SELECT COUNT(*) FROM `cache`") - ] + 'value' => $count, + ], ]; } |
