Is there caching involved in ISecurityHandler.GetQueryResult ?



First, I will query like below to see whether there is such user, this returns 0 users.

CommunitySystem.CurrentContext.DefaultSecurity.GetQueryResult(IUserQuery query);

And I will create an IUser as below,

     EPiServer.Community.CommunitySystem.CurrentContext.DefaultSecurity.AddUser(IUser user);

Then, I will query like below after some time (let's say 2 seconds - 2mins after creating the IUser as above),

     CommunitySystem.CurrentContext.DefaultSecurity.GetQueryResult(IUserQuery query);

However, that newly created IUser does not return from the query in first couple of minutes. Does this involve caching? Because after some time (Probably after 15-30 mins), the query above returns the IUser which I have created. Which is so strange.

I need to have the results without caching if caching is involved for the above query.

Nov 18, 2020 13:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.