related to #1316 Calculates cache size and cache size derivatives

This commit is contained in:
Matthieu Leproux
2021-07-07 18:10:22 +02:00
parent 2e741d98d4
commit 286e8ad5b1
9 changed files with 196 additions and 77 deletions
+3 -1
View File
@@ -281,7 +281,9 @@ $template->assign(
'U_PHPINFO' => sprintf($url_format, 'phpinfo'),
'PHP_DATATIME' => $php_current_timestamp,
'DB_DATATIME' => $db_current_date,
'pwg_token' => $pwg_token
'pwg_token' => $pwg_token,
'cache_sizes' => (isset($conf['cache_sizes'])) ? unserialize($conf['cache_sizes']) : null,
'time_elapsed_since_last_calc' => (isset($conf['cache_sizes'])) ? time_since(unserialize($conf['cache_sizes'])[3]['value'], 'year') : null,
)
);