|
|
@@ -1,6 +1,7 @@
|
|
|
package railsadmin_controller
|
|
|
|
|
|
import (
|
|
|
+ "fmt"
|
|
|
"fohow.com/apps"
|
|
|
"fohow.com/apps/models/user_model"
|
|
|
"fohow.com/cache"
|
|
|
@@ -48,7 +49,11 @@ func (self *RailsadminController) CleanCache() {
|
|
|
case t == "user":
|
|
|
beego.BeeLogger.Warn("railsadmin after save clean user cache: %d", id)
|
|
|
wxUser := user_model.GetWxUserById(id, false)
|
|
|
- wxUser.CleanCache()
|
|
|
+ userKey := fmt.Sprintf("user.GetByUid[%d]", wxUser.UserId)
|
|
|
+ wxUserKey := cache.GetKey(cache.GetWxUserById, wxUser.Id)
|
|
|
+ beego.BeeLogger.Warn("CleanCache--wxuserkey(%s)", wxUserKey)
|
|
|
+ cache.Cache.Delete(userKey)
|
|
|
+ cache.Cache.Delete(wxUserKey)
|
|
|
}
|
|
|
self.ServeJSON()
|
|
|
}
|