From cd7581be1c0551d8baba67c74afc2c2e94ee1f64 Mon Sep 17 00:00:00 2001 From: Andrew Collington Date: Sun, 17 Jul 2022 01:08:56 +0100 Subject: [PATCH] Added date format to template file defaults --- build/template.phps | 33 +++++++++++++++++---------------- index.php | 33 +++++++++++++++++---------------- 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/build/template.phps b/build/template.phps index b219938..a541363 100644 --- a/build/template.phps +++ b/build/template.phps @@ -20,23 +20,24 @@ namespace Amnuts\Opcache; */ $options = [ - 'allow_filelist' => true, // show/hide the files tab - 'allow_invalidate' => true, // give a link to invalidate files - 'allow_reset' => true, // give option to reset the whole cache - 'allow_realtime' => true, // give option to enable/disable real-time updates - 'refresh_time' => 5, // how often the data will refresh, in seconds - 'size_precision' => 2, // Digits after decimal point - 'size_space' => false, // have '1MB' or '1 MB' when showing sizes - 'charts' => true, // show gauge chart or just big numbers - 'debounce_rate' => 250, // milliseconds after key press to send keyup event when filtering - 'per_page' => 200, // How many results per page to show in the file list, false for no pagination - 'cookie_name' => 'opcachegui', // name of cookie - 'cookie_ttl' => 365, // days to store cookie + 'allow_filelist' => true, // show/hide the files tab + 'allow_invalidate' => true, // give a link to invalidate files + 'allow_reset' => true, // give option to reset the whole cache + 'allow_realtime' => true, // give option to enable/disable real-time updates + 'refresh_time' => 5, // how often the data will refresh, in seconds + 'size_precision' => 2, // Digits after decimal point + 'size_space' => false, // have '1MB' or '1 MB' when showing sizes + 'charts' => true, // show gauge chart or just big numbers + 'debounce_rate' => 250, // milliseconds after key press to send keyup event when filtering + 'per_page' => 200, // How many results per page to show in the file list, false for no pagination + 'cookie_name' => 'opcachegui', // name of cookie + 'cookie_ttl' => 365, // days to store cookie + 'datetime_format' => 'D, d M Y H:i:s O', // Show datetime in this format 'highlight' => [ - 'memory' => true, // show the memory chart/big number - 'hits' => true, // show the hit rate chart/big number - 'keys' => true, // show the keys used chart/big number - 'jit' => true // show the jit buffer chart/big number + 'memory' => true, // show the memory chart/big number + 'hits' => true, // show the hit rate chart/big number + 'keys' => true, // show the keys used chart/big number + 'jit' => true // show the jit buffer chart/big number ] ]; diff --git a/index.php b/index.php index 898d0dc..aee6498 100644 --- a/index.php +++ b/index.php @@ -20,23 +20,24 @@ namespace Amnuts\Opcache; */ $options = [ - 'allow_filelist' => true, // show/hide the files tab - 'allow_invalidate' => true, // give a link to invalidate files - 'allow_reset' => true, // give option to reset the whole cache - 'allow_realtime' => true, // give option to enable/disable real-time updates - 'refresh_time' => 5, // how often the data will refresh, in seconds - 'size_precision' => 2, // Digits after decimal point - 'size_space' => false, // have '1MB' or '1 MB' when showing sizes - 'charts' => true, // show gauge chart or just big numbers - 'debounce_rate' => 250, // milliseconds after key press to send keyup event when filtering - 'per_page' => 200, // How many results per page to show in the file list, false for no pagination - 'cookie_name' => 'opcachegui', // name of cookie - 'cookie_ttl' => 365, // days to store cookie + 'allow_filelist' => true, // show/hide the files tab + 'allow_invalidate' => true, // give a link to invalidate files + 'allow_reset' => true, // give option to reset the whole cache + 'allow_realtime' => true, // give option to enable/disable real-time updates + 'refresh_time' => 5, // how often the data will refresh, in seconds + 'size_precision' => 2, // Digits after decimal point + 'size_space' => false, // have '1MB' or '1 MB' when showing sizes + 'charts' => true, // show gauge chart or just big numbers + 'debounce_rate' => 250, // milliseconds after key press to send keyup event when filtering + 'per_page' => 200, // How many results per page to show in the file list, false for no pagination + 'cookie_name' => 'opcachegui', // name of cookie + 'cookie_ttl' => 365, // days to store cookie + 'datetime_format' => 'D, d M Y H:i:s O', // Show datetime in this format 'highlight' => [ - 'memory' => true, // show the memory chart/big number - 'hits' => true, // show the hit rate chart/big number - 'keys' => true, // show the keys used chart/big number - 'jit' => true // show the jit buffer chart/big number + 'memory' => true, // show the memory chart/big number + 'hits' => true, // show the hit rate chart/big number + 'keys' => true, // show the keys used chart/big number + 'jit' => true // show the jit buffer chart/big number ] ];