summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-30 18:22:05 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-30 18:22:05 +0000
commit37c53a0d930c8e7940c762335cf1bdbee6476c1d (patch)
tree3c0fc7e97a9bc9a03e44c7e9ad6c5ca82951ece5
parentc6196310475fc7ee067a44429ae742722800d983 (diff)
downloadpfsense-37c53a0d930c8e7940c762335cf1bdbee6476c1d.zip
pfsense-37c53a0d930c8e7940c762335cf1bdbee6476c1d.tar.gz
Read shaper config only once. This should speedup on large shaper config the loading of the page.
-rwxr-xr-xusr/local/www/firewall_rules_edit.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index ffd7062..e50bcb4 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -458,6 +458,13 @@ if ($_POST) {
}
}
+read_altq_config(); /* XXX: */
+$qlist =& get_unique_queue_list();
+read_dummynet_config(); /* XXX: */
+$dnqlist =& get_unique_dnqueue_list();
+read_layer7_config();
+$l7clist =& get_l7_unique_list();
+
$pgtitle = array("Firewall","Rules","Edit");
$closehead = false;
@@ -1043,8 +1050,6 @@ include("head.inc");
<td width="78%" class="vtable">
<select name="dnpipe">
<?php
- read_dummynet_config(); /* XXX: */
- $dnqlist =& get_unique_dnqueue_list();
if (!is_array($dnqlist))
$dnqlist = array();
echo "<option value=\"none\"";
@@ -1090,8 +1095,6 @@ include("head.inc");
<td width="78%" class="vtable">
<select name="ackqueue">
<?php
- read_altq_config(); /* XXX: */
- $qlist =& get_unique_queue_list();
if (!is_array($qlist))
$qlist = array();
echo "<option value=\"none\"";
@@ -1136,8 +1139,6 @@ include("head.inc");
<td width="78%" class="vtable">
<select name="l7container">
<?php
- read_layer7_config();
- $l7clist =& get_l7_unique_list();
if (!is_array($l7clist))
$dnqlist = array();
echo "<option value=\"none\"";
OpenPOWER on IntegriCloud