Skip to content
Snippets Groups Projects
Commit 5bd9dcef authored by Angie Byron's avatar Angie Byron
Browse files

#557582 by moshe weitzman: Reset statics after each update to conserve memory and avoid odd bugs.

parent ff813ab6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -410,6 +410,8 @@ function update_do_one($module, $number, &$context) {
// Record the schema update if it was completed successfully.
if ($context['finished'] == 1 && empty($context['results'][$module]['#abort'])) {
drupal_set_installed_schema_version($module, $number);
// Conserve memory and avoid errors by resetting all static variables.
drupal_static_reset();
}
$context['message'] = 'Updating ' . check_plain($module) . ' module';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment