mstruebing / tldr

Golang command line client for tldr https://github.com/tldr-pages/tldr
MIT License
262 stars 24 forks source link

Reload cache: only remove old cache if new cache is finally downloaded #48

Closed mstruebing closed 4 years ago

mstruebing commented 4 years ago

Currently the cache gets updated after a specified time to live. This is fine, but when you are executing tldr and the ttl is over and you are not connected to the internet it fails to get the new cache and has no pages because the cache is already deleted.