Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15711

Caches for all smart groups are updated when a contact is deleted

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.6
    • Fix Version/s: 4.6
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      /var/www/html/prod/drupal-7.27/sites/default/civicrm_custom_php/CRM/Contact/BAO/Contact.php

      In deleteContact it calls CRM_Contact_BAO_GroupContactCache::remove();

      When this is called with no parameters, all the caches for all the smart groups are updated. This is really inefficient, particularly for organisations like Future First with lots of smart groups. It should just be updating caches for smart groups that this contact is a member of.

        Attachments

          Activity

            People

            • Assignee:
              johnff John Kirk
              Reporter:
              johnff John Kirk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: