Conversation
3lvis added a commit
that referenced
this pull request
Jun 17, 2026
3lvis added a commit
that referenced
this pull request
Jun 17, 2026
…long-URL fix Implements roadmap #10. One PR covering the whole cache surface. - Consistency: clearCache() empties both the in-memory NSCache and the on-disk files; reset() = clearCache() + wipe credentials/headers/fakes. The disk-only static deleteCachedFiles() (which left memory serving deleted data) is gone. - Warm/cold TTL: on-disk entries carry a sliding TTL (cacheTTL, default 7 days) whose persisted clock is the file's modification date — re-warmed on a disk read/write, no in-memory map, no manifest. NSCache absorbs repeat reads (the debounce). - Sharded from the start: files live under domain/<shard>/<file>; the startup sweep does one shard per launch via a cursor, so per-launch work is O(N/16) and never spikes. Sweep and clears serialize on a lock. - Long-URL fix: destinationURL hashes the filename component past the 255-byte limit (red-first). Breaking vs 7.0.0 (v8). Backed by the mtime-vs-SQLite benchmark in #320. README, repo notes, CHANGELOG, roadmap updated. 176 tests green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.