From ebdd75e03f6d90ea38712069426834d22ba719b0 Mon Sep 17 00:00:00 2001 From: Joerg Date: Thu, 22 Jan 2026 09:28:37 +0100 Subject: [PATCH] fix: invalidate caches after deleting QSOs After deleting all QSOs, invalidate the stats and user caches so the QSO page shows updated statistics instead of stale cached data. Co-Authored-By: Claude --- src/backend/services/lotw.service.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/services/lotw.service.js b/src/backend/services/lotw.service.js index b3c9699..35eadd3 100644 --- a/src/backend/services/lotw.service.js +++ b/src/backend/services/lotw.service.js @@ -656,6 +656,10 @@ export async function deleteQSOs(userId) { logger.info('Deleted QSOs', { userId, count, deletedChanges }); + // Invalidate caches for this user + await invalidateStatsCache(userId); + await invalidateUserCache(userId); + return count; }