From: Matthew Wire Date: Mon, 4 May 2020 11:46:28 +0000 (+0100) Subject: Switch to non-deprecated function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f34c86fbaaa95a701ec44a6c42675eabfcf432cd;p=civicrm-core.git Switch to non-deprecated function --- diff --git a/CRM/Admin/Form/Setting/Localization.php b/CRM/Admin/Form/Setting/Localization.php index f7a8b6ea7c..d495b09eb4 100644 --- a/CRM/Admin/Form/Setting/Localization.php +++ b/CRM/Admin/Form/Setting/Localization.php @@ -161,10 +161,10 @@ class CRM_Admin_Form_Setting_Localization extends CRM_Admin_Form_Setting { //cache contact fields retaining localized titles //though we changed localization, so reseting cache. - Civi::cache('fields')->flush(); + Civi::cache('fields')->clear(); //CRM-8559, cache navigation do not respect locale if it is changed, so reseting cache. - Civi::cache('navigation')->flush(); + Civi::cache('navigation')->clear(); // reset ACL and System caches CRM_Core_BAO_Cache::resetCaches();