Move disabling of bootstrap mode to after init().

init() loads from the cache which can autoload additional classes. For
example the FileEngine adapter loads Inflector. Loading additional
classes causes the file_map cache to be re-written on each request when
using FileEngine. This results in degraded performance when using
FileEngine.

Fixes #3947
This commit is contained in:
mark_story 2013-08-02 23:20:13 -04:00
parent 6c1e60953b
commit 1b610a8d62

View file

@ -78,8 +78,8 @@ class Configure {
if (!include APP . 'Config' . DS . 'core.php') {
trigger_error(__d('cake_dev', "Can't find application core file. Please create %score.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR);
}
App::$bootstrapping = false;
App::init();
App::$bootstrapping = false;
App::build();
$exception = array(