We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7582b9b commit 8383532Copy full SHA for 8383532
1 file changed
src/Umbraco.Core/Cache/DistributedCacheExtensions.cs
@@ -23,7 +23,15 @@ public static void RefreshPublicAccess(this DistributedCache dc)
23
#region UserCacheRefresher
24
25
public static void RemoveUserCache(this DistributedCache dc, IEnumerable<IUser> users)
26
- => dc.Remove(UserCacheRefresher.UniqueId, users.Select(x => x.Id).Distinct().ToArray());
+ {
27
+ IEnumerable<UserCacheRefresher.JsonPayload> payloads = users.Select(x => new UserCacheRefresher.JsonPayload()
28
29
+ Id = x.Id,
30
+ Key = x.Key,
31
+ });
32
+
33
+ dc.RefreshByPayload(UserCacheRefresher.UniqueId, payloads);
34
+ }
35
36
public static void RefreshUserCache(this DistributedCache dc, IEnumerable<IUser> users)
37
{
0 commit comments