function update_flush_all_caches

Remove update overrides and flush all caches.

This will need to be run once all (if any) updates are run. Do not call this while updates are running.

2 calls to update_flush_all_caches()
update_finished in drupal/core/includes/update.inc
Finishes the update process and stores the results for eventual display.
update_script_selection_form in drupal/core/update.php
Form constructor for the list of available database module updates.

File

drupal/core/update.php, line 188
Administrative page for handling updates from one Drupal version to another.

Code

function update_flush_all_caches() {
  unset($GLOBALS['conf']['container_bundles']['UpdateBundle']);
  Drupal::service('kernel')
    ->updateModules(Drupal::moduleHandler()
    ->getModuleList());

  // No updates to run, so caches won't get flushed later.  Clear them now.
  drupal_flush_all_caches();
}