Simplify groupContactCache - remove redundant query
authorColeman Watts <coleman@civicrm.org>
Tue, 7 Apr 2020 17:33:58 +0000 (13:33 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 8 Apr 2020 23:25:13 +0000 (19:25 -0400)
commitca83fdf95dbd7c3aa39a3b825567b256d5688856
tree766da972af922bb11c4bcb9327ed049a247dac93
parentcb66ac5a52c29f5d51d9e1843108ef23ed9491ea
Simplify groupContactCache - remove redundant query

This was essentially running the same query twice, once with COUNT and then again with INSERT.
Should be ok to skip the count as the INSERT will do nothing if there are no results.
CRM/Contact/BAO/GroupContactCache.php