Fix invalidate cache for smart groups
Overview
Method CRM_Contact_BAO_GroupContactCache::invalidateGroupContactCache() is described as touching smart groups but there is no condition for smart groups.
Current behaviour
This query is called for all groups.
Proposed behaviour
Limit to smart group
Comments
Current behaviour produced too much traffic on database (deadlocks).