The config class now makes less database reads.

This commit is contained in:
Michael
2017-01-18 21:45:32 +00:00
parent 045e94ccf3
commit 0548099f6c
29 changed files with 153 additions and 107 deletions

View File

@@ -1569,7 +1569,7 @@ function update_db(App $a) {
$stored = intval($build);
$current = intval(DB_UPDATE_VERSION);
if($stored < $current) {
load_config('database');
Config::load('database');
// We're reporting a different version than what is currently installed.
// Run any existing update scripts to bring the database up to current.