mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix file_map being regenerated on every request.
A mistake a few months ago caused the file_map to always be regenerated as Configure::write() would cause both Configure and Hash to be loaded, invalidating the file map. By entering bootstrap mode earlier we can avoid that. Refs #5229
This commit is contained in:
parent
23c5805763
commit
b6caddcf49
1 changed files with 2 additions and 2 deletions
|
@ -148,6 +148,8 @@ App::uses('Cache', 'Cache');
|
||||||
App::uses('Object', 'Core');
|
App::uses('Object', 'Core');
|
||||||
App::uses('Multibyte', 'I18n');
|
App::uses('Multibyte', 'I18n');
|
||||||
|
|
||||||
|
App::$bootstrapping = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Full URL prefix
|
* Full URL prefix
|
||||||
*/
|
*/
|
||||||
|
@ -170,8 +172,6 @@ Configure::write('App.imageBaseUrl', IMAGES_URL);
|
||||||
Configure::write('App.cssBaseUrl', CSS_URL);
|
Configure::write('App.cssBaseUrl', CSS_URL);
|
||||||
Configure::write('App.jsBaseUrl', JS_URL);
|
Configure::write('App.jsBaseUrl', JS_URL);
|
||||||
|
|
||||||
App::$bootstrapping = true;
|
|
||||||
|
|
||||||
Configure::bootstrap(isset($boot) ? $boot : true);
|
Configure::bootstrap(isset($boot) ? $boot : true);
|
||||||
|
|
||||||
if (function_exists('mb_internal_encoding')) {
|
if (function_exists('mb_internal_encoding')) {
|
||||||
|
|
Loading…
Reference in a new issue