summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-21 17:05:21 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-21 17:05:21 -0500
commit880637d273abeeb2fd6c8fc79eb9ef82b758c144 (patch)
tree948a2f82ea13c18821302015151ebd5d0745615f
parent980df75c74ef76020979f2f17cbb3ec77df54aa5 (diff)
downloadpfsense-880637d273abeeb2fd6c8fc79eb9ef82b758c144.zip
pfsense-880637d273abeeb2fd6c8fc79eb9ef82b758c144.tar.gz
Default to only system information and interfaces widgets. This reduces load time on RSPRO from 9+ seconds to 2.5
-rw-r--r--conf.default/config.xml3
-rw-r--r--usr/local/www/includes/functions.inc.php12
-rwxr-xr-xusr/local/www/index.php6
3 files changed, 13 insertions, 8 deletions
diff --git a/conf.default/config.xml b/conf.default/config.xml
index 5a324ae..e42f9ff 100644
--- a/conf.default/config.xml
+++ b/conf.default/config.xml
@@ -797,4 +797,7 @@
</options>
</monitor_type>
</load_balancer>
+ <widgets>
+ <sequence>system_information-container:col1:show,captive_portal_status-container:col1:close,carp_status-container:col1:close,cpu_graphs-container:col1:close,gateways-container:col1:close,gmirror_status-container:col1:close,installed_packages-container:col1:close,interface_statistics-container:col1:close,interfaces-container:col2:show,ipsec-container:col2:close,load_balancer_status-container:col2:close,log-container:col2:close,picture-container:col2:close,rss-container:col2:close,services_status-container:col2:close,traffic_graphs-container:col2:close</sequence>
+ </widgets>
</pfsense> \ No newline at end of file
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index 509ebff..9bb9ea2 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -167,8 +167,7 @@ function swap_usage()
return $swapUsage;
}
-function mem_usage()
-{
+function mem_usage() {
$memory = "";
exec("/sbin/sysctl -n vm.stats.vm.v_page_count vm.stats.vm.v_inactive_count " .
"vm.stats.vm.v_cache_count vm.stats.vm.v_free_count", $memory);
@@ -187,7 +186,7 @@ function update_date_time() {
return $datetime;
}
-function get_interfacestats(){
+function get_interfacestats() {
global $config;
//build interface list for widget use
@@ -222,16 +221,13 @@ function get_interfacestats(){
$new_data .= htmlspecialchars($ifinfo['collisions']) . ",";
else
$new_data .= "0,";
-
-
-
}//end for
return $new_data;
}
-function get_interfacestatus(){
+function get_interfacestatus() {
$data = "";
global $config;
@@ -261,4 +257,4 @@ function get_interfacestatus(){
return $data;
}
-?>
+?> \ No newline at end of file
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index f6c6fe5..1a99763 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -42,6 +42,12 @@
##|*MATCH=index.php*
##|-PRIV
+ // Turn on buffering to speed up rendering
+ ini_set('output_buffering','true');
+
+ // Start buffering with a cache size of 10094
+ ob_start(null, "10094");
+
## Load Essential Includes
require_once('guiconfig.inc');
require_once('notices.inc');
OpenPOWER on IntegriCloud