Skip to content
Permalink
Browse files

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
  • Loading branch information...
markstory committed Nov 22, 2014
1 parent 23c5805 commit b6caddcf49967a3ce289178d156645a691b1dfff
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/bootstrap.php
@@ -148,6 +148,8 @@
App::uses('Object', 'Core');
App::uses('Multibyte', 'I18n');
App::$bootstrapping = true;
/**
* Full URL prefix
*/
@@ -170,8 +172,6 @@
Configure::write('App.cssBaseUrl', CSS_URL);
Configure::write('App.jsBaseUrl', JS_URL);
App::$bootstrapping = true;
Configure::bootstrap(isset($boot) ? $boot : true);
if (function_exists('mb_internal_encoding')) {

0 comments on commit b6caddc

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.