Skip to content
Permalink
Browse files

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
  • Loading branch information...
markstory committed Aug 3, 2013
1 parent 6c1e609 commit 1b610a8d62494af2ef3b74cd81df070157a7ac90
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Core/Configure.php
@@ -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(

0 comments on commit 1b610a8

Please sign in to comment.
You can’t perform that action at this time.