Merge pull request #15305 from yashodha/CRM_21777
[civicrm-core.git] / CRM / Utils / System.php
index 622e1aae9acccbcfee615a7fbbefbcddea095c59..b52932368805f2c7f3579531484d4921059661bf 100644 (file)
@@ -53,7 +53,6 @@
  * @method static array synchronizeUsers() Create CRM contacts for all existing CMS users.
  * @method static appendCoreResources(\Civi\Core\Event\GenericHookEvent $e) Callback for hook_civicrm_coreResourceList.
  * @method static alterAssetUrl(\Civi\Core\Event\GenericHookEvent $e) Callback for hook_civicrm_getAssetUrl.
- * @method static sendResponse(\Psr\Http\Message\ResponseInterface $response) function to handle RepsoseInterface for delivering HTTP Responses.
  */
 class CRM_Utils_System {
 
@@ -1442,6 +1441,8 @@ class CRM_Utils_System {
       Civi::cache('groups')->flush();
       Civi::cache('navigation')->flush();
       Civi::cache('customData')->flush();
+      Civi::cache('contactTypes')->clear();
+      Civi::cache('metadata')->clear();
       CRM_Extension_System::singleton()->getCache()->flush();
       CRM_Cxn_CiviCxnHttp::singleton()->getCache()->flush();
     }