Convert the contact fields cache group to standard cache backend
[civicrm-core.git] / CRM / Custom / Form / ChangeFieldType.php
index 7e89f123826ba8a7b825b61174a445b68b1f4f77..eb079dff197a959e11abe6b5153a74ff1f7b2ec7 100644 (file)
@@ -187,7 +187,7 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form {
     $customField->save();
 
     // Reset cache for custom fields
-    CRM_Core_BAO_Cache::deleteGroup('contact fields');
+    Civi::cache('fields')->flush();
 
     CRM_Core_Session::setStatus(ts('Input type of custom field \'%1\' has been successfully changed to \'%2\'.',
       [1 => $this->_values['label'], 2 => $dstHtmlType]