♻️ Rebuilt cache with the new cache system from nexus

This commit is contained in:
2025-03-29 13:15:20 +08:00
parent c8e8104d5d
commit a4c6e9a905
15 changed files with 188 additions and 752 deletions

View File

@ -172,7 +172,7 @@ func editUserinfo(c *fiber.Ctx) error {
}
services.AddEvent(user.ID, "profile.edit", nil, c.IP(), c.Get(fiber.HeaderUserAgent))
services.InvalidAuthCacheWithUser(account.ID)
services.InvalidUserAuthCache(account.ID)
return c.SendStatus(fiber.StatusOK)
}
@ -197,7 +197,7 @@ func updateAccountLanguage(c *fiber.Ctx) error {
}
services.AddEvent(user.ID, "profile.edit.language", nil, c.IP(), c.Get(fiber.HeaderUserAgent))
services.InvalidAuthCacheWithUser(user.ID)
services.InvalidUserAuthCache(user.ID)
user.Language = data.Language