Skip to content
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

Cache control for project.json restore #120

Closed
wants to merge 1 commit into from
Closed

Conversation

emgarten
Copy link
Contributor

This change adds a CacheContext to RestoreRequest to provide more options beyond NoCache. For package installs and updates restore will go by the time the package operation was started, all older cache entries for the packages restored will be cleared out of the v3-cache. After the operation rebuilding and restoring from the command line will work using the updated v3-cache content, instead of having to retrieving it again which would be the case with NoCache=true.

NuGet/Home#1096

//cc @yishaigalatzer @davidfowl @MeniZalzman @deepakaravindr @feiling

@MeniZalzman
Copy link
Contributor

Can we add tests for this change?

@MeniZalzman
Copy link
Contributor

:shipit:

{
get
{
return GetCacheTime(ListMaxAge, DefaultCacheAgeLimitNupkg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be NupkgMaxAge

@deepakaravindr
Copy link
Contributor

:shipit: after incorporating comments

@emgarten emgarten closed this Aug 26, 2015
@emgarten emgarten deleted the emgarten/cacheStart branch August 26, 2015 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants