Skip to content

chore: extract cache TTL constant#846

Open
mgalore wants to merge 1 commit into
OWASP:mainfrom
mgalore:chore/issue-843-cache-ttl
Open

chore: extract cache TTL constant#846
mgalore wants to merge 1 commit into
OWASP:mainfrom
mgalore:chore/issue-843-cache-ttl

Conversation

@mgalore

@mgalore mgalore commented Jul 18, 2026

Copy link
Copy Markdown

Summary

  • export the 30-minute cache TTL as CACHE_TTL_MS
  • use the named constant when checking whether OSV cache entries are stale

Verification

  • npm test (93 suites, 1092 tests)
  • npm run build
  • git diff --check

Closes #843

@mgalore
mgalore requested a review from sonukapoor as a code owner July 18, 2026 14:06
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.

chore: extract cache TTL magic number to named constant

1 participant