Skip to content

Commit

Permalink
Move disabling of bootstrap mode to after init().
Browse files Browse the repository at this point in the history
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
  • Loading branch information
markstory committed Aug 3, 2013
1 parent 6c1e609 commit 1b610a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Core/Configure.php
Expand Up @@ -78,8 +78,8 @@ public static function bootstrap($boot = true) {
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(
Expand Down

0 comments on commit 1b610a8

Please sign in to comment.