diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyUserExitExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyUserExitExe.java index 5a70ec5f..9a716b34 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyUserExitExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyUserExitExe.java @@ -13,7 +13,10 @@ import com.red.circle.other.inner.asserts.FamilyErrorCode; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; +import java.util.Collections; +import java.util.HashSet; import java.util.Optional; +import java.util.stream.Collectors; /** *

@@ -55,6 +58,8 @@ public class FamilyUserExitExe { familyMemberInfo.getMemberUserId(), userNickname ); + + userProfileGateway.removeCacheAll(new HashSet<>(Collections.singletonList(cmd.getReqUserId()))); } private boolean isAdmin(FamilyMemberInfo familyMemberInfo) {