Skip to content

Commit fb59683

Browse files
authored
chore: temporary disable cache invalidation (#3687)
1 parent 5835023 commit fb59683

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

backend/src/services/memberService.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { CommonMemberService, getGithubInstallationToken } from '@crowd/common_s
1010
import { findMemberAffiliations } from '@crowd/data-access-layer/src/member_segment_affiliations'
1111
import {
1212
MemberField,
13-
MemberQueryCache,
1413
addMemberRole,
1514
fetchManyMemberOrgsWithOrgData,
1615
fetchMemberBotSuggestionsBySegment,
@@ -69,14 +68,15 @@ export default class MemberService extends LoggerBase {
6968
options: IServiceOptions
7069

7170
private async invalidateMemberQueryCache(): Promise<void> {
72-
try {
73-
const cache = new MemberQueryCache(this.options.redis)
74-
await cache.invalidateAll()
75-
this.log.debug('Invalidated member query cache')
76-
} catch (error) {
77-
// Don't fail the operation if cache invalidation fails
78-
this.log.warn('Failed to invalidate member query cache', { error })
79-
}
71+
this.log.info('Member cache invalidation is temporary disabled')
72+
// try {
73+
// const cache = new MemberQueryCache(this.options.redis)
74+
// await cache.invalidateAll()
75+
// this.log.debug('Invalidated member query cache')
76+
// } catch (error) {
77+
// // Don't fail the operation if cache invalidation fails
78+
// this.log.warn('Failed to invalidate member query cache', { error })
79+
// }
8080
}
8181

8282
constructor(options: IServiceOptions) {

0 commit comments

Comments
 (0)