From 2f83ea61c7e52b9e31a161fb5e4df5b2a5fa7be1 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 30 Jun 2017 21:27:09 -0400 Subject: PLT-6830 Fixed updating profile image not invalidating cache (#6814) --- app/user.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/user.go b/app/user.go index eaeed53a5..0b9a79863 100644 --- a/app/user.go +++ b/app/user.go @@ -823,7 +823,9 @@ func SetProfileImage(userId string, imageData *multipart.FileHeader) *model.AppE return model.NewLocAppError("SetProfileImage", "api.user.upload_profile_user.upload_profile.app_error", nil, "") } - Srv.Store.User().UpdateLastPictureUpdate(userId) + <-Srv.Store.User().UpdateLastPictureUpdate(userId) + + InvalidateCacheForUser(userId) if user, err := GetUser(userId); err != nil { l4g.Error(utils.T("api.user.get_me.getting.error"), userId) -- cgit v1.2.3-1-g7c22