Skip to content

feat(cache): Add persistent documentation cache - #14

Merged
philprime merged 1 commit into
mainfrom
philprime/feat/add-persistent-cache
Sep 10, 2026
Merged

feat(cache): Add persistent documentation cache#14
philprime merged 1 commit into
mainfrom
philprime/feat/add-persistent-cache

Conversation

@philprime

Copy link
Copy Markdown
Member

Apple documentation responses now use a dedicated 1 GB disk-backed URL cache instead of the small shared default. This lets repeated searches reuse downloaded DocC pages across CLI invocations while preserving standard HTTP cache revalidation.

Adds apple-docs cache clean for deterministic cleanup with human-readable reclaimed size reporting. Cache directory lookup safely handles unavailable user cache locations without forced unwrapping or unbounded array access.

Validated with the full test suite, static analysis, a release build, and an isolated release smoke test that populated and cleared cached response payloads.

Use a dedicated disk-backed URL cache for Apple documentation responses and expose a cache clean command for deterministic cleanup.
@philprime
philprime marked this pull request as ready for review September 10, 2026 12:04
@philprime
philprime enabled auto-merge (squash) September 10, 2026 12:04
Comment thread Tests/CLITests/cmd/cache/CacheCleanCommandRunnerTests.swift
@philprime
philprime merged commit 546ed78 into main Sep 10, 2026
12 checks passed
@philprime
philprime deleted the philprime/feat/add-persistent-cache branch September 10, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant