Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hello,
I am developing GetUsersByGroup for my website and I am experiencing the following issue - when I create user from the EPi Community backend and then I try reaching it from code using either userGroup.Users or CommunitySystem.CurrentContext.DefaultSecurity.GetGroupUsers(userGroup) it is not there.
I refactored the GetGroupUsers users and I see there is permanent cache and it is not cleaned up after new user is added to myGroup (IGroup).
How can I go around this - my workflow is:
1. Create user from backend
2. Use it in page, right away
I consider creating my Query to return UserCollection with condition user to have myGroup in his groups - is this a good solution in performance matters?
Steps to repro:
1. Create user from backend
2. Use it in page, right away, getting it by CommunitySystem.CurrentContext.DefaultSecurity.GetGroupUsers
3. You cannot - user is not there
Thank you in advance and have a good one,
Nadya