tldr-pages/tldr-python-client

Feature Request: completely & precisely control cache and remote resource request

Phuker opened this issue · 0 comments

I am making a wrapper of this tldr client to display default & private tldr pages at the same time, but it is confusing to config whether to use cache.

Sometimes I do not want cache and only want remote request. I set env TLDR_CACHE_ENABLED=0, it will still fall back to cache when web request fails, the cache can not be disabled completely.

On other times I only want to read from cache but do not want any remote request. I can not find an option to do this.

I have to do a lot of workaround. It might be good if these things can be controled completely & precisely.

Thank you!