Answers.Body: <p>In your situation its reasonable to set cache time to 0 since your smart group is very less and hopefully those smart group criteria are not complexed. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-02T15:12:12.323Z
Answers.LastActivityDate: 2020-04-02T15:12:12.323Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>A different approach would be to replace the smart group by a static group and use CiviRules to add the new contacts into the group.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-02T16:10:39.543Z
Answers.Text: Aidan, thanks - I like that idea (should have thought of that!).
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-02T15:22:16.783Z
Answers.LastActivityDate: 2020-04-02T15:22:16.783Z
Answers.UserDisplayName: Aidan
Body: <p>Using ACLs I have setup a group of users to have edit access to a smart group of contacts. The smart group is based upon the contact type. The problem is when one of these users creates a contact of this type, the contact is created OK but then an error message pops up to say they don't have access to the contact. They do have contact after a minute or so - the smart group cache is set to 1.  When I set the smart group cache to 0 then they have immediate access.  This client only has 12 smart groups. Smart group cache set to 0 solves the problem, but I'm not sure this is a good idea.  Are there any other solutions for this situation? - which can't be that uncommon.</p>
  
Tags: <smartgroups><acl>
Title: Is smart group cache set to 0 OK for this situation?
ThreadText: # Is smart group cache set to 0 OK for this situation?
  
  (Asked by: username_0 on 2020-04-02)
  
  Using ACLs I have setup a group of users to have edit access to a smart group of contacts. The smart group is based upon the contact type. The problem is when one of these users creates a contact of this type, the contact is created OK but then an error message pops up to say they don't have access to the contact. They do have contact after a minute or so - the smart group cache is set to 1. When I set the smart group cache to 0 then they have immediate access. This client only has 12 smart groups. Smart group cache set to 0 solves the problem, but I'm not sure this is a good idea. Are there any other solutions for this situation? - which can't be that uncommon.
  
  **Tags:** smartgroups, acl
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-04-02. Score: 2
  
  In your situation its reasonable to set cache time to 0 since your smart group is very less and hopefully those smart group criteria are not complexed.
  
  
  ---
  
  ### Answer by username_2 on 2020-04-02. Score: 2
  
  A different approach would be to replace the smart group by a static group and use CiviRules to add the new contacts into the group.
  
  > **Comments:**
  > **username_0**: username_2, thanks - I like that idea (should have thought of that!).  
  
  ---
  
  