Answers.Body: <p>Change the 'Smart group cache timeout' which is in Administer/Customise data and screens/Search Preferences  The default is 5 minutes but I normally set this to 1 for my clients. It can be set to zero but this isn't recommended according to this screen.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-30T08:47:43.870Z
Answers.LastActivityDate: 2018-11-30T08:47:43.870Z
Answers.UserDisplayName: Andy Clark
Answers.Body: <p>Clearing the Civi cache doesn't work? It should.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T16:38:24.083Z
Answers.Text: can you run cron faster?
Answers.UserDisplayName: Sean Kenny
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T16:38:42.127Z
Answers.Text: @Andy : I did not expect cleaning the civi cache would work (while rebuilding the smart group cache does not), but actually, you look right ; I will test more extensively. BTW, do you know how I can clean the cache from a php program (I am not really a programmer, but may be able to with a little help) ?
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T16:40:05.583Z
Answers.Text: @Sean : running CRON has no effect
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T15:23:25.207Z
Answers.LastActivityDate: 2018-11-19T15:23:25.207Z
Answers.UserDisplayName: Andy Burns
Answers.Body: <p>Instead of openning the Smart Group (e.g. /civicrm/group/search?force=1&amp;context=smog&amp;<strong>gid=341</strong>&amp;component_mode=1), you can call its pertaining Search (e.g. /civicrm/contact/search/advanced?reset=1&amp;force=1&amp;<strong>ssID=263</strong>).</p>
  
  <p>You can get the Search Id (ssID) :</p>
  
  <ul>
  <li>either via "Edit Smart Group Searc Criteria ..." button (which calls the associated Search URL)</li>
  <li>or in the civicrm_group table : saved_search_id field</li>
  </ul>
  
  <p><strong>NO : this gives erratic results</strong></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-06T22:04:47.387Z
Answers.Text: if your last edit means 'this answer does not work' then perhaps it should be deleted as an Answer and added as a Comment or an 'update' on the Question.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-17T08:28:59.207Z
Answers.LastActivityDate: 2019-01-04T15:50:33.250Z
Answers.LastEditDate: 2019-01-04T15:50:33.250Z
Answers.UserDisplayName: Jacques-Marie Moranne
Body: <p>On CiviCRM 5.6.0</p>
  
  <p>I have a Smart Group based upon custom_param1=1 (as an example).</p>
  
  <p>I change some values of custom_param1, to update my Smart Group in order to send a mail to its updated members.</p>
  
  <p>But the Smart Group is not updated immediately (I have to wait 5 minutes before it is)</p>
  
  <p>How can I force its update to have it immediately ?</p>
  
  <p>(rebuilding the smart group cache has no effect)</p>
  
Tags: <smartgroups>
Title: How to quickly update a Smart Group?
ThreadText: # How to quickly update a Smart Group?
  
  (Asked by: username_0 on 2018-11-19)
  
  On CiviCRM 5.6.0
  
  I have a Smart Group based upon custom\_param1=1 (as an example).
  
  I change some values of custom\_param1, to update my Smart Group in order to send a mail to its updated members.
  
  But the Smart Group is not updated immediately (I have to wait 5 minutes before it is)
  
  How can I force its update to have it immediately ?
  
  (rebuilding the smart group cache has no effect)
  
  **Tags:** smartgroups
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2018-11-30. Score: 1
  
  Change the 'Smart group cache timeout' which is in Administer/Customise data and screens/Search Preferences The default is 5 minutes but I normally set this to 1 for my clients. It can be set to zero but this isn't recommended according to this screen.
  
  
  ---
  
  ### Answer by username_2 on 2018-11-19. Score: 1
  
  Clearing the Civi cache doesn't work? It should.
  
  > **Comments:**
  > **username_3**: can you run cron faster?  
  > **username_0**: @username_1 : I did not expect cleaning the civi cache would work (while rebuilding the smart group cache does not), but actually, you look right ; I will test more extensively. BTW, do you know how I can clean the cache from a php program (I am not really a programmer, but may be able to with a little help) ?  
  > **username_0**: @username_3 : running CRON has no effect  
  
  ---
  
  ### Answer by username_0 on 2018-12-17. Score: 1
  
  Instead of openning the Smart Group (e.g. /civicrm/group/search?force=1&context=smog&**gid=341**&component\_mode=1), you can call its pertaining Search (e.g. /civicrm/contact/search/advanced?reset=1&force=1&**ssID=263**).
  
  You can get the Search Id (ssID) :
  
  * either via "Edit Smart Group Searc Criteria ..." button (which calls the associated Search URL)
  * or in the civicrm\_group table : saved\_search\_id field
  
  **NO : this gives erratic results**
  
  > **Comments:**
  > **username_4**: if your last edit means 'this answer does not work' then perhaps it should be deleted as an Answer and added as a Comment or an 'update' on the Question.  
  
  ---
  
  