Skip to content

fix(vulnfeeds): Cache patch#4876

Merged
another-rex merged 2 commits into
masterfrom
jess-lowe-patch-1
Feb 24, 2026
Merged

fix(vulnfeeds): Cache patch#4876
another-rex merged 2 commits into
masterfrom
jess-lowe-patch-1

Conversation

@jess-lowe

@jess-lowe jess-lowe commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Sometimes vendor product combinations in the VPRepoCache are given "successful" repos in its cache that are unrelated to the project. I believe this is to do with how larger projects that are affected by the vuln (like Debian/RH etc) are also added to the record.

With the cache, if a record earlier on resolves a repo, but saves it to a Vendor Product that is unrelated, this might cause a bad cache entry.

This unfortunately might slow things down but its better than bad misses.

Sometimes vendor product combinations in the VPRepoCache are given "successful" repos in its cache that are unrelated to the project. I believe this is to do with how larger projects that are affected by the vuln (like Debian/RH etc) are also added to the record. 

With the cache, if a record earlier on resolves a repo, but saves it to a Vendor Product that is unrelated, this might cause a bad cache entry.
another-rex
another-rex previously approved these changes Feb 24, 2026
@another-rex another-rex enabled auto-merge (squash) February 24, 2026 02:27
@another-rex another-rex merged commit e891d00 into master Feb 24, 2026
19 checks passed
@another-rex another-rex deleted the jess-lowe-patch-1 branch February 24, 2026 02:35
tymzd pushed a commit to tymzd/osv.dev that referenced this pull request Apr 13, 2026
Sometimes vendor product combinations in the VPRepoCache are given
"successful" repos in its cache that are unrelated to the project. I
believe this is to do with how larger projects that are affected by the
vuln (like Debian/RH etc) are also added to the record.

With the cache, if a record earlier on resolves a repo, but saves it to
a Vendor Product that is unrelated, this might cause a bad cache entry.

This unfortunately might slow things down but its better than bad
misses.
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.

2 participants