From 6633dcbf8280f2ba79a59e15c724615ac426c497 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 27 Sep 2014 21:03:45 -0400 Subject: [PATCH] CRM-15156 - Flush js cache before upgrade --- CRM/Upgrade/Page/Upgrade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Upgrade/Page/Upgrade.php b/CRM/Upgrade/Page/Upgrade.php index 47ae44e710..f3386177df 100644 --- a/CRM/Upgrade/Page/Upgrade.php +++ b/CRM/Upgrade/Page/Upgrade.php @@ -89,6 +89,9 @@ class CRM_Upgrade_Page_Upgrade extends CRM_Core_Page { CRM_Core_Error::fatal($error); } + // All cached content needs to be cleared because the civi codebase was just replaced + CRM_Core_Resources::singleton()->flushStrings()->rebuildDynamicResources(); + // This could be removed in later rev if ($currentVer == '2.1.6') { $config = CRM_Core_Config::singleton(); -- 2.25.1