app/kb/registry/route.ts
7 lines and 0 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
None: it only declares types or values.
Imports
It imports app/kb/procedures/route.ts, app/lib/pages/route.ts. Imported by app/lib/cache-purge.server.ts, app/lib/site-urls.server.ts, app/routes/lab.kind.tsx, app/routes/lab.tsx, app/routes/lab[.md].ts, app/routes/protocols.tsx.
Source
// What the registry's pages, listings and twins share: the cache tags a save purges (app/lib/cache-purge.server.ts).
import { CONTENT_PAGE_HTML_TAGS } from "~/lib/pages/route";
import { PROCEDURES_CACHE_TAG } from "~/kb/procedures/route";
/** Every registry response carries it; a registry save and sync purge it. */
export const REGISTRY_CACHE_TAG = "registry";
/** The tags the registry's pages and twins carry: the registry's own, the content pages' (the inventory reads the phages, whose save purges that tag) and the procedures' (an item lists the protocols that use it). */
export const LAB_CACHE_TAGS = `${CONTENT_PAGE_HTML_TAGS},${REGISTRY_CACHE_TAG},${PROCEDURES_CACHE_TAG}`;