forked from GithubBackups/vichan
Performance enhancement with eval
This commit is contained in:
parent
71c89de6de
commit
4bf6c1ab8e
@ -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']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user