CRM_Utils_System::flushCache(CRM_Core_BAO_Contact::getCachedKeys());
CRM_Utils_System::flushCache();This code example shows how you can clear all the caches in the system by calling the flushCache function without any parameters. Package Library: The CRM_Utils_System is a class in the CiviCRM Core library.