Browse Source

缓存清理优化

shen 4 years ago
parent
commit
fa6eb8b0a6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      go/gopath/src/fohow.com/apps/models/user_model/wx_user.go

+ 1 - 0
go/gopath/src/fohow.com/apps/models/user_model/wx_user.go

@@ -392,6 +392,7 @@ func (self *WxUser) CleanCache() {
 	//消除user,wxuser缓存
 	userKey := fmt.Sprintf("user.GetByUid[%d]", self.UserId)
 	wxUserKey := cache.GetKey(cache.GetWxUserById, self.Id)
+	beego.BeeLogger.Info("CleanCache--wxuserkey(%s)", wxUserKey)
 	cache.Cache.Delete(userKey)
 	cache.Cache.Delete(wxUserKey)
 }