Save towns as plain PHP File in cache folder

+ Also load them on install + on reload items
= better performance when in dev mode
This commit is contained in:
slawkens
2020-10-09 22:27:48 +02:00
parent 3090989dea
commit ab3912b378
6 changed files with 155 additions and 57 deletions

View File

@@ -76,6 +76,13 @@ else {
error(Spells::getLastError());
}
if (Towns::save()) {
success($locale['step_database_loaded_towns']);
}
else {
warning($locale['step_database_error_towns']);
}
// update config.highscores_ids_hidden
require_once SYSTEM . 'migrations/20.php';
$database_migration_20 = true;