Skip to content

pruneExternalTemplateCache

pruneExternalTemplateCache(options?): Promise<ExternalTemplateCachePruneResult>

Defined in: wp-typia-project-tools/src/runtime/template-source-cache.ts:494

Removes stale external template cache entries when a positive TTL is configured.

The helper is best-effort: malformed cache directories are skipped, cache roots must remain private and non-symlinked, and deletes are constrained to deterministic entry directories under the configured cache root.

ExternalTemplateCachePruneOptions = {}

Optional TTL, clock, and environment overrides.

Promise<ExternalTemplateCachePruneResult>

Pruning summary with counts for inspected, skipped, and removed entries.