Performance enhancement with eval

This commit is contained in:
8chan 2014-11-19 00:50:05 -08:00
parent 71c89de6de
commit 4bf6c1ab8e

View File

@ -412,7 +412,9 @@ EOT;
$_config = $config; $_config = $config;
openBoard($b); // Faster than openBoard and bypasses cache...we're trusting the PHP output
// to be safe enough to run with every request, we can eval it here.
eval(preg_replace('/^\<\?php$/m', '', $config_file));
// be smarter about rebuilds...only some changes really require us to rebuild all threads // be smarter about rebuilds...only some changes really require us to rebuild all threads
if ($_config['captcha']['enabled'] != $config['captcha']['enabled'] if ($_config['captcha']['enabled'] != $config['captcha']['enabled']