Introduce new get_cacti_version function to reduce database calls on pages

This commit is contained in:
cigamit committed 2017-05-14 12:29:30 -05:00
1 parent 7985ca2e81
commit 1a14cbb440
46 files changed
+121 -130

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ global $current_user;
include('./include/global.php');
if (!isset($config['cacti_db_version'])) {
$version = db_fetch_cell('SELECT cacti FROM version');
$version = get_cacti_version();
$config['cacti_db_version'] = $version;
} else {
$version = $config['cacti_db_version'];