From: demeritcowboy Date: Sat, 19 Mar 2022 19:33:56 +0000 (-0400) Subject: postupgrade messages no longer being displayed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b00d6b3fc8ab8d74b460e662752aae392ca60933;p=civicrm-core.git postupgrade messages no longer being displayed --- diff --git a/CRM/Upgrade/Form.php b/CRM/Upgrade/Form.php index bd8e609cc2..903ea66d15 100644 --- a/CRM/Upgrade/Form.php +++ b/CRM/Upgrade/Form.php @@ -815,8 +815,9 @@ SET version = '$version' $config = CRM_Core_Config::singleton(); $config->userSystem->flush(); - CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, TRUE); + CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, FALSE); // NOTE: triggerRebuild is FALSE becaues it will run again in a moment (via fixSchemaDifferences). + // sessionReset is FALSE because upgrade status/postUpgradeMessages are needed by the Page. We reset later in doFinish(). $versionCheck = new CRM_Utils_VersionCheck(); $versionCheck->flushCache(); @@ -840,6 +841,7 @@ SET version = '$version' * @return bool */ public static function doFinish(): bool { + CRM_Core_Config::singleton()->cleanupCaches(TRUE); return TRUE; }