chore: drop the orphaned locale-prefix helper

The cross-locale status-cache eviction is gone, taking the prefix
builder's last caller with it.
This commit is contained in:
Marc-André Bombeck committed 2026-06-11 23:29:09 +02:00
1 parent 8fdf8597a2
commit 6bfba2f187
1 file changed
+1 -8
+1 -8
View File
@@ -38,19 +38,12 @@ import { annotate } from "@/lib/logging/context";
* `action` is `insights.<scope>-status.<locale>`. 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;