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

Clear index cache if it is old #3033 #3324

Merged
merged 1 commit into from
Aug 18, 2017
Merged

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Aug 7, 2017

  • Any changes that could be relevant to users have been recorded in the ChangeLog.md
  • The documentation has been updated, if necessary.

Not sure if this fixes the problem described in #3033, but I believe this will help in cases where stack is terminated after downloading the index but before clearing the cache.

case (mindexModTime, mcacheModTime) of
(Right indexModTime, Right cacheModTime) | cacheModTime < indexModTime -> do
deleteCache indexName'
$logInfo "No updates to your pakcage list were found, but clearing the index cache as it is older than the index."
Copy link
Member

@decentral1se decentral1se Aug 7, 2017

Choose a reason for hiding this comment

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

Tiny one - s/pakcage/package/g

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Fixed.

@mgsloan mgsloan force-pushed the clear-index-cache-if-old-3033 branch 2 times, most recently from 1a6ada2 to 8214d31 Compare August 8, 2017 22:54
@mgsloan mgsloan force-pushed the clear-index-cache-if-old-3033 branch from 8214d31 to 06239d0 Compare August 18, 2017 03:10
@mgsloan mgsloan merged commit 17ff21d into master Aug 18, 2017
@mgsloan mgsloan deleted the clear-index-cache-if-old-3033 branch January 2, 2018 09:53
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

Successfully merging this pull request may close these issues.

2 participants