Switch to non-deprecated function
authorMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 4 May 2020 11:46:28 +0000 (12:46 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Mon, 4 May 2020 11:46:28 +0000 (12:46 +0100)
CRM/Admin/Form/Setting/Localization.php

index f7a8b6ea7c0a86ce66ac6b78db0e44c937ea7043..d495b09eb4d63f384bdd763be3eb2ec8a5541e64 100644 (file)
@@ -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();