summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/globals.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-08-10 17:26:09 -0300
committerRenato Botelho <renato@netgate.com>2017-08-10 17:26:30 -0300
commite8f8aeb631079e15d434b7ad80e3a553210bc777 (patch)
tree80301bdd08c7992dcc17d6d1fa214bd2f28b1407 /src/etc/inc/globals.inc
parentca77322046df2206512a4095b5e07003972a900d (diff)
downloadpfsense-e8f8aeb631079e15d434b7ad80e3a553210bc777.zip
pfsense-e8f8aeb631079e15d434b7ad80e3a553210bc777.tar.gz
Use cache file to show pfSense version information
Diffstat (limited to 'src/etc/inc/globals.inc')
-rw-r--r--src/etc/inc/globals.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc
index b803953..f2fe7bf 100644
--- a/src/etc/inc/globals.inc
+++ b/src/etc/inc/globals.inc
@@ -172,6 +172,10 @@ if (file_exists("/etc/inc/globals_override.inc")) {
/* Read all XML files in following dir and load menu entries */
$g["ext_menu_path"] = "/usr/local/share/{$g['product_name']}/menu";
+/* Cache file used to store pfSense version */
+$g["version_cache_file"] = "{$g['varrun_path']}/{$g['product_name']}_version";
+$g['version_cache_refresh'] = 24 * 60 * 60; /* 24h */
+
function platform_booting($on_console = false) {
global $g;
OpenPOWER on IntegriCloud