From d474d1abd00241c324826ec574700ec4ec80797e Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 5 Oct 2023 15:17:40 +0800 Subject: [PATCH] chore: update store cache --- store/idp.go | 1 - store/user_setting.go | 1 - 2 files changed, 2 deletions(-) diff --git a/store/idp.go b/store/idp.go index bb0d09762..357c9c276 100644 --- a/store/idp.go +++ b/store/idp.go @@ -96,7 +96,6 @@ func (s *Store) GetIdentityProvider(ctx context.Context, find *FindIdentityProvi } identityProvider := list[0] - s.idpCache.Store(identityProvider.ID, identityProvider) return identityProvider, nil } diff --git a/store/user_setting.go b/store/user_setting.go index 98c4234c0..bac59b726 100644 --- a/store/user_setting.go +++ b/store/user_setting.go @@ -56,7 +56,6 @@ func (s *Store) GetUserSetting(ctx context.Context, find *FindUserSetting) (*Use } userSetting := list[0] - s.userSettingCache.Store(getUserSettingCacheKey(userSetting.UserID, userSetting.Key), userSetting) return userSetting, nil }