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 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 09:28:37 +01:00
parent 205b311244
commit ebdd75e03f

View File

@@ -656,6 +656,10 @@ export async function deleteQSOs(userId) {
logger.info('Deleted QSOs', { userId, count, deletedChanges }); logger.info('Deleted QSOs', { userId, count, deletedChanges });
// Invalidate caches for this user
await invalidateStatsCache(userId);
await invalidateUserCache(userId);
return count; return count;
} }