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

Dependencies should be retrieved when starting a new session #178

Closed
ilanbiala opened this issue Feb 26, 2015 · 6 comments
Closed

Dependencies should be retrieved when starting a new session #178

ilanbiala opened this issue Feb 26, 2015 · 6 comments

Comments

@ilanbiala
Copy link

I'm not sure how often dependencies are retrieved, but it seems like the cache on the website is very long. Is it possible to check if the date modified on package.json is more recent than when David last generated the table?

@alanshaw
Copy link
Owner

There's two caches in david-dm.org:

Firstly, your package.json file is cached for an hour to ensure david keeps within the github rate limits. We could lower this if we leverage conditional requests. I'd be really happy to accept a pull request that adds this!

Note that when you publish to npm, david will automatically expire any cached package.json if the project has included repo info.

Secondly, version information for each package in npm is cached for ages, but because david is listening for npm registry changes, cached version information is expired when publishes occur.

@alanshaw
Copy link
Owner

I've just published a new version of a package and it looks as though david isn't currently expiring the cached package.json for the project - will investigate

@satazor
Copy link

satazor commented Jan 2, 2016

@alanshaw I'm still getting the same issue as the OP stated. I'm publishing new versions and DM takes way too long to update them. I don't think your commit actually fixed the issue. :(

@alanshaw
Copy link
Owner

alanshaw commented Jan 3, 2016

Thanks for the heads up @satazor - would you be willing to look into the problem and submit a patch?

@satazor
Copy link

satazor commented Jan 3, 2016

Yes I think I can take a look at that. Could you point me the part of the project where the "update" hook gets performed?

@alanshaw
Copy link
Owner

alanshaw commented Jan 3, 2016

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

No branches or pull requests

3 participants