mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 21:32:18 +00:00
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:
1 parent
8fdf8597a2
commit
6bfba2f187
1 file changed
+1
-8
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user