diff --git a/CHANGELOG.md b/CHANGELOG.md index 89bec7fe..ae2f2cf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ the `yaml` and `json` keys are no longer available (#1654 by @pd93). - Added a new `TASK_REMOTE_DIR` environment variable to configure where cached remote Taskfiles are stored (#1661 by @vmaerten). +- Added a new `--clear-cache` flag to clear the cache of remote Taskfiles (#1639 + by @vmaerten). - Improved the readability of cached remote Taskfile filenames (#1636 by @vmaerten). - Starting releasing a binary for the `riscv64` architecture on Linux (#1699 by diff --git a/website/docs/experiments/remote_taskfiles.mdx b/website/docs/experiments/remote_taskfiles.mdx index 74055acb..8a85ccd0 100644 --- a/website/docs/experiments/remote_taskfiles.mdx +++ b/website/docs/experiments/remote_taskfiles.mdx @@ -105,16 +105,19 @@ internet and cached locally. If for whatever reason, you lose access to the internet, you will still be able to run your tasks by specifying the `--offline` flag. This will tell Task to use the latest cached version of the file instead of trying to download it. You are able to use the `--download` flag to update -the cached version of the remote files without running any tasks. -You are able to use the `--clear-cache` flag to clear all cached version of the remote files without running any tasks. +the cached version of the remote files without running any tasks. You are able +to use the `--clear-cache` flag to clear all cached version of the remote files +without running any tasks. By default, Task will timeout requests to download remote files after 10 seconds and look for a cached copy instead. This timeout can be configured by setting the `--timeout` flag and specifying a duration. For example, `--timeout 5s` will set the timeout to 5 seconds. -By default, the cache is stored in the Task temp directory, represented by the `TASK_TEMP_DIR` [environment variable](../reference/environment.mdx) -You can override the location of the cache by setting the `TASK_REMOTE_DIR` environment variable. This way, you can share the cache between different projects. +By default, the cache is stored in the Task temp directory, represented by the +`TASK_TEMP_DIR` [environment variable](../reference/environment.mdx) You can +override the location of the cache by setting the `TASK_REMOTE_DIR` environment +variable. This way, you can share the cache between different projects. {/* prettier-ignore-start */} [enabling-experiments]: ./experiments.mdx#enabling-experiments