Commit 7146f5b6 authored by Derek Laventure's avatar Derek Laventure Committed by Will Hearn
Browse files

Issue #3248590: Flushing caches during preUpdate hook should set maintenance mode

parent 7a182cb2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -58,7 +58,9 @@ public function __construct(ProfileExtensionList $profile_list, $install_profile
   * @hook pre-command updatedb
   */
  public function preUpdate() {
    \Drupal::state()->set('system.maintenance_mode', TRUE);
    drupal_flush_all_caches();
    \Drupal::state()->set('system.maintenance_mode', FALSE);
  }

  /**