修改BUG:异步清理缓存,导致所有客户端数据不能及时刷新,需要点击一下查询

This commit is contained in:
Argo-Lenovo 2017-03-27 17:27:29 +08:00
parent 150473af3e
commit f90b952244
1 changed files with 2 additions and 1 deletions

View File

@ -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)