summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-03 18:09:14 -0500
committersullrich <sullrich@pfsense.org>2009-12-03 18:09:14 -0500
commitcc0934722eb81bf93c20586378618df73ce12cc8 (patch)
tree73714572150e74eeb452e1d6809f0bbd8af08963 /etc
parente8e12c54f81d97c38e30d2db205b6b577873e0da (diff)
downloadpfsense-cc0934722eb81bf93c20586378618df73ce12cc8.zip
pfsense-cc0934722eb81bf93c20586378618df73ce12cc8.tar.gz
Prefetch index.php after starting webConfigurator and send it to /dev/null allowing the priming of the apc cache
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 450a0b3..d1425e6 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -670,6 +670,9 @@ 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 */
+ mwexec("fetch -o /dev/null -q {$config['system']['webgui']['protocol']}:{$portarg}//localhost/index.php");
+
if ($g['booting']) {
if ($res == 0)
echo "done.\n";
OpenPOWER on IntegriCloud