Repository navigation
morca ui: keep data reads at a named snapshot; a missing snapshot is 404 - #548
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycszSbyw92Efu4ZeCYL6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycszSbyw92Efu4ZeCYL6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017TycszSbyw92Efu4ZeCYL6
winding-lines
force-pushed
the
ui-data-cache
branch
from
November 19, 2026 14:57
3cd1b18 to
812b639
Compare
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 free
to 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.
Crawlers ask the Data tab for snapshots again and again, many of them expired: each one ran
morca_maintain datafor 1–2 s and came back 400 (iceberg: no snapshot with id …).data.json,data.csv):morca_maintain datachecks the metadata and says"status": 404. Other mistakes in the request stay 400.morca._internal.web.cache: the UI keeps answers to data reads at a named?snapshot=by visitors not logged in (200s and those 404s), LRU by bytes (MORCA_UI_DATA_CACHE_MB, 64; 0 is off), 10 minutes at most. A hit saysX-Morca-Cache: hit, counts toward the client's rate and takes no data-read slot.Tests:
tests/test_data_cache.mojo(hit, 404, LRU eviction, replace, too big, off at 0, expiry);tests/dataview.sh(404 for page/JSON/CSV; a repeat read is a hit with the same body; not kept without a snapshot, with a session, or at 0);tests/ui_drain.shstart line.🤖 Generated with Claude Code
https://claude.ai/code/session_017TycszSbyw92Efu4ZeCYL6