You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache is downloaded from `TLDR_DOWNLOAD_CACHE_LOCATION` (defaults to the one described in [the client specification](https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#caching)), unzipped and extracted into the [local cache directory](#cache-location). Pages are loaded directly from `TLDR_PAGES_SOURCE_LOCATION` if `tldr <command>` is used.
93
94
94
95
-`TLDR_CACHE_ENABLED` (default is `1`):
95
-
- If set to `1`, the client will first try to load from cache, and fall back to fetching from the internet if the cache doesn't exist or is too old.
96
-
- If set to `0`, the client will fetch from the internet, and fall back to the cache if the page cannot be fetched from the internet.
96
+
- If set to `1`, the client will first try to load from cache, and fall back to fetching from the internet if the cache doesn't exist or is too old.
97
+
- If set to `0`, the client will fetch from the internet, and fall back to the cache if the page cannot be fetched from the internet.
97
98
-`TLDR_CACHE_MAX_AGE` (default is `168` hours, which is equivalent to a week): maximum age of the cache in hours to be considered as valid when `TLDR_CACHE_ENABLED` is set to `1`.
98
99
99
100
#### Cache location
100
101
101
102
In order of precedence:
103
+
102
104
-`$XDG_CACHE_HOME/tldr`
103
105
-`$HOME/.cache/tldr`
104
106
-`~/.cache/tldr`
@@ -130,7 +132,7 @@ an autocomplete for `tldr` for `fish`.
130
132
131
133
For networks that sit behind a proxy, it may be necessary to disable SSL verification for the client to function. Setting the following:
132
134
133
-
-`TLDR_ALLOW_INSECURE=1`
135
+
-`TLDR_ALLOW_INSECURE=1`
134
136
135
137
will disable SSL certificate inspection. This __should be avoided__ unless absolutely necessary.
0 commit comments