-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cache for common package queries #22491
base: main
Are you sure you want to change the base?
Conversation
Maybe we can wait #22294 |
I don't think this is related because this cache should only be valid within one request. If you cache these objects longer than that you may get problems with expired/updated values. |
Yes, it's the same. |
Oh, my mistake. I mixed up that PR with the global cache. |
I think this could be rewritten since #22294 merged. |
This adds a cache for common package queries in
GetPackageDescriptor
. Code which needs to process a list of packages benefits from this change. This skips 350 queries in the package integration tests for example.