CRM-16642 - Rename `refreshCache` to `flushCache`
[civicrm-core.git] / CRM / Contact / Form / CustomData.php
index 24feb13a81e15cc04225fa1a7b4bbf4e31fab7af..bbb3c4e09014990acbac9282eca978d22048c521 100644 (file)
@@ -309,8 +309,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
       $this->ajaxResponse += CRM_Contact_Form_Inline::renderFooter($this->_tableID);
     }
 
-    // reset the group contact cache for this group
-    CRM_Contact_BAO_GroupContactCache::remove();
+    CRM_Contact_BAO_GroupContactCache::opportunisticCacheFlush();
   }
 
 }