Skip to content

Commit

Permalink
Merge pull request #16682 from colemanw/remove
Browse files Browse the repository at this point in the history
Remove deprecated function CRM_Contact_BAO_GroupContactCache::remove
  • Loading branch information
eileenmcnaughton authored Mar 4, 2020
2 parents 6142a7e + f06f371 commit f130ab5
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions CRM/Contact/BAO/GroupContactCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,23 +266,6 @@ public static function updateCacheTime($groupID, $processed) {
CRM_Core_DAO::executeQuery($sql);
}

/**
* @deprecated function - the best function to call is
* CRM_Contact_BAO_Contact::updateContactCache at the moment, or api job.group_cache_flush
* to really force a flush.
*
* Remove this function altogether by mid 2018.
*
* However, if updating code outside core to use this (or any BAO function) it is recommended that
* you add an api call to lock in into our contract. Currently there is not really a supported
* method for non core functions.
*/
public static function remove() {
Civi::log()
->warning('Deprecated code. This function should not be called without groupIDs. Extensions can use the api job.group_cache_flush for a hard flush or add an api option for soft flush', ['civi.tag' => 'deprecated']);
CRM_Contact_BAO_GroupContactCache::opportunisticCacheFlush();
}

/**
* Function to clear group contact cache and reset the corresponding
* group's cache and refresh date
Expand Down

0 comments on commit f130ab5

Please sign in to comment.