♻️ 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

@ -34,7 +34,7 @@ func editUserPermission(c *fiber.Ctx) error {
prev := user.PermNodes
user.PermNodes = data.PermNodes
services.InvalidAuthCacheWithUser(user.ID)
services.InvalidUserAuthCache(user.ID)
if err := database.C.Save(&user).Error; err != nil {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())