修改BUG:自定义头像后,没有更新缓存导致头像不变

This commit is contained in:
Argo-Lenovo 2016-12-10 12:06:53 +08:00
parent 5a17768d98
commit 540ca2f18f
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ namespace Bootstrap.DataAccess
cmd.Parameters.Add(DBAccessManager.SqlDBAccess.CreateParameter("@iconName", iconName, ParameterDirection.Input));
cmd.Parameters.Add(DBAccessManager.SqlDBAccess.CreateParameter("@userName", userName, ParameterDirection.Input));
DBAccessManager.SqlDBAccess.ExecuteNonQuery(cmd);
string key = string.Format("{0}-{1}", RetrieveUsersByNameDataKey, userName);
CacheManager.Clear(k => key == k);
ret = true;
}
}