Invalidate the avatar cache when uploading a new one
This commit is contained in:
parent
b379016d1d
commit
dd55003a71
|
@ -149,6 +149,8 @@ func UploadAvatar(c echo.Context) (err error) {
|
|||
return handler.HandleHTTPError(err, c)
|
||||
}
|
||||
|
||||
upload.InvalidateCache(u)
|
||||
|
||||
// Save the file
|
||||
f, err := files.CreateWithMime(buf, file.Filename, uint64(file.Size), u, "image/png")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue