修改BUG:异步清理缓存,导致所有客户端数据不能及时刷新,需要点击一下查询
This commit is contained in:
parent
150473af3e
commit
f90b952244
|
@ -42,6 +42,7 @@ namespace Bootstrap.DataAccess
|
|||
cacheKeys.Add(MenuHelper.RetrieveMenusDataKey);
|
||||
});
|
||||
cacheKeys.Add(UserHelper.RetrieveNewUsersDataKey + "*");
|
||||
cacheKeys.Add(UserHelper.RetrieveUsersDataKey + "*");
|
||||
}
|
||||
if (groupIds != null)
|
||||
{
|
||||
|
@ -86,7 +87,7 @@ namespace Bootstrap.DataAccess
|
|||
try
|
||||
{
|
||||
var client = new WebClient();
|
||||
cacheKeys.ForEach(k => client.OpenReadAsync(new Uri(string.Format(ele.Url, k))));
|
||||
cacheKeys.ForEach(k => client.OpenRead(new Uri(string.Format(ele.Url, k))));
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Reference in New Issue