Commit 5af87666 by Scott

Add cache stats in admin

parent cbeac855
......@@ -62,8 +62,8 @@ return array(
'caching_dir_error' => 'The directory ^ defined as QA_CACHE_DIRECTORY is not writable by the web server.',
'caching_dir_missing' => 'Cache directory has not been defined.',
'caching_dir_public' => 'The directory ^ defined as QA_CACHE_DIRECTORY must be outside the public root.',
'caching_disk_size' => 'Total size of cache',
'caching_num_files' => 'Number of files',
'caching_num_items' => 'Number of items in cache',
'caching_space_used' => 'Total size of cache',
'caching_title' => 'Caching',
'cancel_mailing_button' => 'Cancel Mailing',
'categories' => 'Categories',
......
......@@ -1801,6 +1801,19 @@ switch ($adminsection) {
'style' => 'wide',
'fields' => array(
'cache_files' => array(
'type' => 'static',
'label' => qa_lang_html('admin/caching_num_items'),
'value' => qa_html(qa_format_number($cacheStats['files'])),
),
'cache_size' => array(
'type' => 'static',
'label' => qa_lang_html('admin/caching_space_used'),
'value' => qa_html(qa_format_number($cacheStats['size'] / 1048576, 1) . ' MB'),
),
),
'buttons' => array(
'delete_all' => array(
'label' => qa_lang_html('admin/caching_delete_all'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment