diff --git a/CRM/Admin/Form/Setting.php b/CRM/Admin/Form/Setting.php index e19ff5128651..695f6f097df4 100644 --- a/CRM/Admin/Form/Setting.php +++ b/CRM/Admin/Form/Setting.php @@ -233,6 +233,7 @@ public function commonProcess(&$params) { } CRM_Core_Config::clearDBCache(); + Civi::cache('session')->clear(); // This doesn't make a lot of sense to me, but it maintains pre-existing behavior. CRM_Utils_System::flushCache(); CRM_Core_Resources::singleton()->resetCacheCode(); diff --git a/CRM/Admin/Form/Setting/UpdateConfigBackend.php b/CRM/Admin/Form/Setting/UpdateConfigBackend.php index 68711ff42aa6..b5c7bb8c57b8 100644 --- a/CRM/Admin/Form/Setting/UpdateConfigBackend.php +++ b/CRM/Admin/Form/Setting/UpdateConfigBackend.php @@ -65,6 +65,7 @@ public function postProcess() { // clear all caches CRM_Core_Config::clearDBCache(); + Civi::cache('session')->clear(); CRM_Utils_System::flushCache(); parent::rebuildMenu(); diff --git a/CRM/Core/BAO/ConfigSetting.php b/CRM/Core/BAO/ConfigSetting.php index 8cc765328614..bb5340bbec4a 100644 --- a/CRM/Core/BAO/ConfigSetting.php +++ b/CRM/Core/BAO/ConfigSetting.php @@ -260,6 +260,7 @@ public static function doSiteMove($defaultValues = array()) { // clear all caches CRM_Core_Config::clearDBCache(); + Civi::cache('session')->clear(); $moveStatus .= ts('Database cache tables cleared.') . '
'; $resetSessionTable = CRM_Utils_Request::retrieve('resetSessionTable', diff --git a/CRM/Core/Config.php b/CRM/Core/Config.php index 14baccd3510b..265532c67d8b 100644 --- a/CRM/Core/Config.php +++ b/CRM/Core/Config.php @@ -295,6 +295,7 @@ public function cleanupCaches($sessionReset = TRUE) { // clear all caches self::clearDBCache(); + Civi::cache('session')->clear(); CRM_Utils_System::flushCache(); if ($sessionReset) {