X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=sql%2FGenerateData.php;h=ebd098bdd4981006d14e16a090851c41d0f9738c;hb=98970c99d359c3264cd2a773f1e173de7833aacf;hp=2809fa382df039e2c66f88cf928e751e6819bf23;hpb=c6dd2cccea85ec30969bdf444e55c3cdf22ec54f;p=civicrm-core.git diff --git a/sql/GenerateData.php b/sql/GenerateData.php index 2809fa382d..ebd098bdd4 100644 --- a/sql/GenerateData.php +++ b/sql/GenerateData.php @@ -1195,7 +1195,8 @@ class CRM_GCD { //In this function when we add groups that time we are cache the contact fields //But at the end of setup we are appending sample custom data, so for consistency //reset the cache. - CRM_Core_BAO_Cache::deleteGroup('contact fields'); + Civi::cache('fields')->flush(); + CRM_Core_BAO_Cache::resetCaches(); } /**