Answers.Body: <p>Pretty sure that we only consider active groups to regenerate the cache:</p>
  
  <p>CRM/Contact/BAO/GroupContactCache.php</p>
  
  <p>also most smart groups are regenerated on demand. The scheduled job invokes the loadAll function with groupsIDs as null, which in turn restricts the query to is_active groups</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-04T23:46:35.603Z
Answers.LastActivityDate: 2015-05-04T23:46:35.603Z
Answers.UserDisplayName: Donald Lobo
Body: <p>I work with a CiviCRM install with about 400 smart groups - but only about 30 of them are enabled.  I'm seeing slow performance - I'm wondering if anyone knows definitively whether my disabled smart groups are affecting performance?</p>
  
Tags: <smartgroups><cache>
Title: When the smart group cache is regenerated, are disabled smart groups regenerated?
ThreadText: # When the smart group cache is regenerated, are disabled smart groups regenerated?
  
  (Asked by: username_0 on 2015-05-04)
  
  I work with a CiviCRM install with about 400 smart groups - but only about 30 of them are enabled. I'm seeing slow performance - I'm wondering if anyone knows definitively whether my disabled smart groups are affecting performance?
  
  **Tags:** smartgroups, cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-04. Score: 4 | Accepted answer
  
  Pretty sure that we only consider active groups to regenerate the cache:
  
  CRM/Contact/BAO/GroupContactCache.php
  
  also most smart groups are regenerated on demand. The scheduled job invokes the loadAll function with groupsIDs as null, which in turn restricts the query to is\_active groups
  
  
  ---
  
  