-
Notifications
You must be signed in to change notification settings - Fork 129
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
Comments
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. |
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 |
@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. :( |
Thanks for the heads up @satazor - would you be willing to look into the problem and submit a patch? |
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? |
I think you need to look here: https://github.com/alanshaw/david-www/blob/master/lib/manifest.js#L191 |
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?The text was updated successfully, but these errors were encountered: