diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-03 18:09:14 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-03 18:09:14 -0500 |
commit | cc0934722eb81bf93c20586378618df73ce12cc8 (patch) | |
tree | 73714572150e74eeb452e1d6809f0bbd8af08963 /etc | |
parent | e8e12c54f81d97c38e30d2db205b6b577873e0da (diff) | |
download | pfsense-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.inc | 3 |
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"; |