From 6bfba2f187f88c3f8cc176e2e1868f4748373a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 11 Jun 2026 23:29:09 +0200 Subject: [PATCH] chore: drop the orphaned locale-prefix helper The cross-locale status-cache eviction is gone, taking the prefix builder's last caller with it. --- src/lib/insights/status-cache.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/insights/status-cache.ts b/src/lib/insights/status-cache.ts index fddb4c8fe..45434b73b 100644 --- a/src/lib/insights/status-cache.ts +++ b/src/lib/insights/status-cache.ts @@ -38,19 +38,12 @@ import { annotate } from "@/lib/logging/context"; * `action` is `insights.-status.`. The shape IS the cache * key, so building it by hand in multiple places risks the same silent * drift the queryKey factory guards against on the client. `statusCacheAction` - * is the one builder; `statusCacheActionPrefix` is its locale-agnostic - * sibling for the `startsWith` eviction that drops every locale variant of a - * scope at once. + * is the one builder. */ export function statusCacheAction(scope: string, locale: string): string { return `insights.${scope}-status.${locale}`; } -/** Locale-agnostic prefix for `startsWith`-eviction of every locale of a scope. */ -export function statusCacheActionPrefix(scope: string): string { - return `insights.${scope}-status.`; -} - interface ParsedStatusCache { dateKey?: string; locale?: string;