-
Notifications
You must be signed in to change notification settings - Fork 681
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
Caching question #93
Comments
This is odd - you should see the cached nupkg in your BaGet volume. Is the volume empty? I'll do some investigation later to make sure mirroring works as expected while running on Docker. |
Unfortunately the package didn't make it, |
What NuGet sources are you using in Visual Studio? You should have just Also, have you already installed this package? NuGet won't contact upstream feeds if it has already downloaded the package. Check your machine's offline mirrors (like |
I took a look on what happens here.
This will hit
@loic-sharma how was this supposed to work? isn't the package service responsible only for indexing local packages? |
For read-through caching, queries to registration and package service must be directed to upstream server. Otherwise client would get always 404 because there is nothing in the cache to begin with. We can add caching queries too, but that requires integrating catalog reader to refresh responses for already cached packages.
For read-through caching, queries to registration and package service must be directed to upstream server. Otherwise client would get always 404 because there is nothing in the cache to begin with. We can add caching queries too, but that requires integrating catalog reader to refresh responses for already cached packages.
Apologies, I haven't had a chance to look into this bug yet. I appreciate the help @tomzo!
You're correct, the Not all endpoints cache packages from an upstream source:
From what you're saying, it sounds like the
What's the benefit of adding a separate endpoint? Are the current endpoints not enough? |
That's because it does not just "restore", but rather makes a query on what versions are available first, and then uses other endpoints to get particular package.
Something like I started in #102 ?
Currently in any of the endpoints we have a workflow like this:
In short I think query to db is unnecessary for cached/public packages. PS: I wrote you an email with some issues too. |
For read-through caching, queries to registration and package service must be directed to upstream server. Otherwise client would get always 404 because there is nothing in the cache to begin with. We can add caching queries too, but that requires integrating catalog reader to refresh responses for already cached packages.
For read-through caching, queries to registration and package service must be directed to upstream server. Otherwise client would get always 404 because there is nothing in the cache to begin with. We can add caching queries too, but that requires integrating catalog reader to refresh responses for already cached packages.
For read-through caching, queries to registration and package service must be directed to upstream server. Otherwise client would get always 404 because there is nothing in the cache to begin with. We can add caching queries too, but that requires integrating catalog reader to refresh responses for already cached packages.
This should have been fixed by #124. Feel free to open a new issue if you have any additional questions or problems! |
Question issue, regards caching;
I'v noticed this feature:
I have enabled it.
However, when i install package from nuget.org i cant see it in my BaGet volume.
How can i tell this feature works?
thanks a lot!
The text was updated successfully, but these errors were encountered: