From cee4f6a13af4b529593b94a9d1c1b24ae26493ae Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 26 Aug 2013 10:15:46 -0700 Subject: [PATCH] CRM-12466 ---------------------------------------- * CRM-12466: Group listings don't load http://issues.civicrm.org/jira/browse/CRM-12466 --- CRM/Contact/BAO/GroupContactCache.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index f36dd5f0f1..90b2cdd62f 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -249,6 +249,21 @@ WHERE id IN ( $groupIDs ) CRM_Core_DAO::executeQuery($sql); } + /** + * Removes all the cache entries pertaining to a specific group + * If no groupID is passed in, removes cache entries for all groups + * Has an optimization to bypass repeated invocations of this function. + * Note that this function is an advisory, i.e. the removal respects the + * cache date, i.e. the removal is not done if the group was recently + * loaded into the cache. + * + * @param $groupID int the groupID to delete cache entries, NULL for all groups + * @param $onceOnly boolean run the function exactly once for all groups. + * + * @public + * @return void + * @static + */ static function remove($groupID = NULL, $onceOnly = TRUE) { static $invoked = FALSE; -- 2.25.1