mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
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:
parent
6c1e60953b
commit
1b610a8d62
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue