perf : cache
This commit is contained in:
@@ -3,6 +3,8 @@ export const INVALIDATION_TYPES = [
|
||||
"page.updated",
|
||||
"stygian.updated",
|
||||
"admin.updated",
|
||||
"catalog.updated",
|
||||
"glossary.updated",
|
||||
] as const;
|
||||
|
||||
export type InvalidationType = (typeof INVALIDATION_TYPES)[number];
|
||||
@@ -63,6 +65,8 @@ export function expectedTopic(event: InvalidationEvent): string {
|
||||
case "stygian.updated":
|
||||
return "stygian";
|
||||
case "admin.updated":
|
||||
case "catalog.updated":
|
||||
case "glossary.updated":
|
||||
return "admin";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user