diff options
author | Philipp A <flying-sheep@web.de> | 2019-02-13 14:57:00 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-13 08:57:00 -0500 |
commit | e782ba1a6fd8342cddd961da9274dbd0244685d1 (patch) | |
tree | b90bb6e75169ae6e122f8a2a05dbcde8c2ddb1e0 /website/manual.md | |
parent | c468be64ed6cc3d3d3c2a74f15ba1157082f0f5b (diff) |
Use proper directory for cache files (#1763)
Operating systems have defined directories for cache files.
That allows them to do smart things such as leaving them out when doing a backup,
or deleting them when disk space gets low.
Also a %home%\.deno folder on windows made no sense whatsoever.
Fixes #481
Diffstat (limited to 'website/manual.md')
-rw-r--r-- | website/manual.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/website/manual.md b/website/manual.md index 5ec0ccdb1..da0948e06 100644 --- a/website/manual.md +++ b/website/manual.md @@ -359,9 +359,15 @@ and yet it accessed the network. The runtime has special access to download imports and cache them to disk. Deno caches remote imports in a special directory specified by the `$DENO_DIR` -environmental variable. It default to `$HOME/.deno` if `$DENO_DIR` is not -specified. The next time you run the program, no downloads will be made. If the -program hasn't changed, it won't be recompiled either. +environmental variable. It defaults to the system's cache directory if +`$DENO_DIR` is not specified. The next time you run the program, no downloads +will be made. If the program hasn't changed, it won't be recompiled either. The +default directory is: + +- On Linux/Redox: `$XDG_CACHE_HOME/deno` or `$HOME/.cache/deno` +- On Windows: `%LOCALAPPDATA%/deno` (`%LOCALAPPDATA%` = `FOLDERID_LocalAppData`) +- On macOS: `$HOME/Library/Caches/deno` +- If something fails, it falls back to `$HOME/.deno` **But what if `https://deno.land/` goes down?** Relying on external servers is convenient for development but brittle in production. Production software should |