diff options
author | Ermal <eri@pfsense.org> | 2012-11-15 14:32:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-15 14:32:33 +0000 |
commit | 73ebd062315c78bc64adff529ce3862d91ce2e4b (patch) | |
tree | 6cb4d4dc36b2d08ba0437f65265ac1c233500377 | |
parent | 991fc85dc74073f2ce20900241af525de619ad8a (diff) | |
download | pfsense-73ebd062315c78bc64adff529ce3862d91ce2e4b.zip pfsense-73ebd062315c78bc64adff529ce3862d91ce2e4b.tar.gz |
Remove preload.php which warmed the caches. IT hurts on embedded and really does not help that much
-rw-r--r-- | etc/inc/system.inc | 6 | ||||
-rwxr-xr-x | usr/local/www/preload.php | 66 |
2 files changed, 0 insertions, 72 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 76f2c39..2146605 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -799,12 +799,6 @@ function system_webgui_start() { /* attempt to start lighthttpd */ $res = mwexec("/usr/local/sbin/lighttpd -f {$g['varetc_path']}/lighty-webConfigurator.conf"); - /* fetch page to preload apc cache */ - $proto = "http"; - if ($config['system']['webgui']['protocol']) - $proto = $config['system']['webgui']['protocol']; - mwexec_bg("/usr/bin/fetch -o /dev/null -q {$proto}://localhost:{$portarg}/preload.php"); - if ($g['booting']) { if ($res == 0) echo gettext("done.") . "\n"; diff --git a/usr/local/www/preload.php b/usr/local/www/preload.php deleted file mode 100755 index c70d54e..0000000 --- a/usr/local/www/preload.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php - -/* make sure we are coming from 127.0.0.1 */ -$ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; -if($ip <> "127.0.0.1") - die(gettext("You are not allowed to access this page.")); - -/* preload */ - -$files=array("functions.inc", - "config.inc", - "IPv6.inc", - "itemid.inc", - "shaper.inc", - "PEAR.inc", - "led.inc", - "array_intersect_key.inc", - "dyndns.class", - "meta.inc", - "smtp.inc", - "auth.inc", - "easyrule.inc", - "notices.inc", - "system.inc", - "filter.inc", - "upgrade_config.inc", - "openvpn.inc", - "authgui.inc", - "vpfsense-utils.inc", - "vuuid.php", - "captiveportal.inc", - "voucher.inc", - "certs.inc", - "filter_log.inc", - "pkg-utils.inc", - "vpn.inc", - "cmd_chain.inc", - "vslb.inc", - "config.gui.inc", - "globals.inc", - "priv.defs.inc", - "xmlparse.inc", - "priv.inc", - "config.inc", - "growl.class", - "radius.inc", - "xmlrpc.inc", - "gwlb.inc", - "rrd.inc", - "xmlrpc_client.inc", - "config.lib.inc", - "interfaces.inc", - "service-utils.inc", - "xmlrpc_server.inc", - "ipsec.inc", - "services.inc"); - -foreach($files as $file) - require_once($file); - -require("guiconfig.inc"); -include('/usr/local/www/includes/functions.inc.php'); -include("fbegin.inc"); -include("fend.inc"); - -?> |