From b08fb110091f3e94abced3a73c8444bd2f5ac36e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 19 Jun 2015 13:59:32 -0400 Subject: [PATCH] Ensure caches are cleared after changing settings --- CRM/Admin/Form/Setting.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Admin/Form/Setting.php b/CRM/Admin/Form/Setting.php index 0c745ca426..910e5f90d3 100644 --- a/CRM/Admin/Form/Setting.php +++ b/CRM/Admin/Form/Setting.php @@ -261,6 +261,11 @@ AND time_format <> '' unset($params[$setting]); } CRM_Core_BAO_ConfigSetting::create($params); + + CRM_Core_Config::clearDBCache(); + CRM_Utils_System::flushCache(); + CRM_Core_Resources::singleton()->resetCacheCode(); + CRM_Core_Session::setStatus(" ", ts('Changes Saved'), "success"); } -- 2.25.1