Understand cache hits and artifact side effects
mainA cache hit returns the prior result without rerunning the core generation process. However, if you have configured any artifact side effects, the generator will reuse the cached base OpenAPI document but will rerun the artifact pipeline.
Artifact side effects are triggered when:
docsis configured anddocs.enabled !== false- Any
clientSdkentry hasenabled !== false arazzois configuredoverlayis configuredhooks.artifactsWrittenis configured
When a cache hit occurs, the following can run again: Overlay application, spec write, Arazzo, docs, client SDK commands, and artifactsWritten. The result will report cached: true.
Note: Hooks used for building the base document (configLoaded, routesDiscovered, and documentBuilt) do not run during a cache hit.