Repository navigation
Conversation
…econds Every Requests and Discover answer checked up to 32 titles against the viewer's media server again once the 30 s cache ran out, which was most of those pages' load time from a distant connection. A title the viewer can open is now kept 10 minutes; a denial or failed check stays 10 s, so newly shared or recovered access still shows within seconds. The cache holds up to 20,000 answers (4 MB) for a household's libraries.
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.
Summary
MAX_MEDIA_AVAILABILITY_CHECKS_PER_RESPONSE).MEDIA_AVAILABILITY_CACHE_TTL_SECONDS). Libraries rarely lose titles that quickly.MEDIA_AVAILABILITY_ERROR_TTL_SECONDS), so newly shared or recovered access shows within seconds.mediaavailabilitycache now holds up to 20,000 answers and 4 MB (was 5,000 and 2 MB), enough for a household's libraries with the longer lifetime.Testing
mediaServerAvailability.test.tschecks that an allowed title is kept for close to 10 minutes and the next page is answered from the cache (one media-server lookup for two pages), and that a denial is kept for no more than 10 s.00b4b12d1):tsc -p server/tsconfig.json, ESLint on the changed files,pnpm i18n:check: pass;src/hooks/detailDisclosureMediaServer.test.mjs(same as in perf: keep the server responsive on SQLite, and music fallbacks for a busy Aurral #740 and fix(lumen): tidy Manage sheets, Issues filters, admin columns; faster All search #741).AI assistance
AI tools helped write parts of the code and tests. I reviewed the changes, ran the tests listed above, and checked it on a live install.