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

Feature Request: Wait 30 minutes to update cache again #350

Closed
qpwo opened this issue May 6, 2021 · 1 comment
Closed

Feature Request: Wait 30 minutes to update cache again #350

qpwo opened this issue May 6, 2021 · 1 comment

Comments

@qpwo
Copy link

qpwo commented May 6, 2021

Desired behaviour

$ tldr doesnotexist
✔ Page not found. Updating cache...
✔ Creating index...
... # takes 25 seconds for me
$ tldr doesnotexist # run again immediately
✔ Page not found. Cache updated 2 minutes ago. Run `tldr --update` to force update.
... # 28 minutes later
$ tldr doesnotexist
✔ Page not found. Updating cache...
✔ Creating index...

Current behaviour

$ tldr doesnotexist
✔ Page not found. Updating cache...
✔ Creating index...
...
$ tldr doesnotexist 
⠇ Page not found. Updating cache...^C

Environment

$ sw_vers
ProductName:	macOS
ProductVersion:	11.1
BuildVersion:	20C69
$ tldr --version
3.3.7
@agnivade
Copy link
Member

agnivade commented Sep 4, 2022

I think it's rare to see this in a practical scenario. You want to lookup a command, you see that it doesn't exist. Would you want to retry that command again in 2 minutes? That seems unlikely. But I agree that there's definitely things to improve on. Let's track those here: #353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants