mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-05 12:07:22 -04:00
9 lines
261 B
TypeScript
9 lines
261 B
TypeScript
type Kind = 'sources' | 'nouns' | 'terms' | 'inclusive';
|
|
|
|
export default async (kind: Kind, locale: string) => {
|
|
await Promise.all([
|
|
invalidateCache(kind, locale),
|
|
invalidateCache('search', `${locale}:${kind.replace(/s$/, '')}`),
|
|
]);
|
|
};
|