From 5ee16218453ab92efc2c0f21b58a65e6a3bd92e1 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 12 Nov 2025 17:20:22 -0500 Subject: [PATCH] fix mute cache expiration --- packages/backend/src/core/CacheService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/CacheService.ts b/packages/backend/src/core/CacheService.ts index e58a012b6a..c6f06ca3b4 100644 --- a/packages/backend/src/core/CacheService.ts +++ b/packages/backend/src/core/CacheService.ts @@ -261,7 +261,7 @@ export class CacheService implements OnApplicationShutdown { }); this.userMutingsCache = this.cacheManagementService.createQuantumKVCache>('userMutings', { - lifetime: 1000 * 60 * 30, // 3m (workaround for mute expiration) + lifetime: 1000 * 60 * 3, // 3m (workaround for mute expiration) fetcher: async muterId => { const mutings = await this.mutingsRepository.find({ where: { muterId: muterId }, select: ['muteeId'] }); return new Set(mutings.map(muting => muting.muteeId)); @@ -283,7 +283,7 @@ export class CacheService implements OnApplicationShutdown { }); this.userMutedCache = this.cacheManagementService.createQuantumKVCache>('userMuted', { - lifetime: 1000 * 60 * 30, // 3m (workaround for mute expiration) + lifetime: 1000 * 60 * 3, // 3m (workaround for mute expiration) fetcher: async muteeId => { const mutings = await this.mutingsRepository.find({ where: { muteeId }, select: ['muterId'] }); return new Set(mutings.map(muting => muting.muterId));