show number of files and size in cache

This commit is contained in:
Uwe Steinmann 2023-09-14 10:27:47 +02:00
parent 69786c4196
commit 4d3fa42716

View File

@ -63,7 +63,7 @@ class SeedDMS_View_ClearCache extends SeedDMS_Theme_Style {
$addcache = array();
if($addcache = $this->callHook('additionalCache')) {
foreach($addcache as $c)
echo "<p><input type=\"checkbox\" name=\"".$c[0]."\" value=\"1\" checked> ".$c[1]."</p>";
echo "<p><input type=\"checkbox\" name=\"".$c[0]."\" value=\"1\" checked> ".$c[1].(isset($c[2])||isset($c[3]) ? "<br/>" : '').(isset($c[2]) ? SeedDMS_Core_File::format_filesize($c[2]) : '').(isset($c[3]) ? ' in '.$c[3]." Files" : '')."</p>";
}
$this->contentContainerEnd();
$this->formSubmit("<i class=\"fa fa-remove\"></i> ".getMLText('clear_cache'), '', '', 'danger');