Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update store cache

Stevend474d1abd002
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
}