Skip to content

Commit fe20be6

Browse files
committed
docs: move per-task cache check under task branch in decision tree
Per-task cache: false only applies to tasks (scripts can't have it), so it belongs under the task branch, not before the task/script split. https://claude.ai/code/session_01AYbt3E5j8Adk9NB7Sprkah
1 parent 04a3f2f commit fe20be6

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

docs/task-configuration.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -140,23 +140,23 @@ A command run by `vp run` is either a **task** (has an entry in `vite.config.ts`
140140
├─ YES → acts as cache: true (sets scripts: true, tasks: true)
141141
└─ NO → uses workspace config
142142
143-
Per-task cache set to false?
144-
├─ YES → NOT CACHED (--cache does NOT override this)
145-
└─ NO or not set
146-
147-
Does the command have a task entry in vite.config.ts?
148-
149-
├─ YES (task) ──────────────────────────────────────────
150-
│ │
151-
│ Global cache.tasks enabled? (default: true, or true via --cache)
152-
│ ├─ NO → NOT CACHED
153-
│ └─ YES → CACHED <----- this is the default for tasks
143+
Does the command have a task entry in vite.config.ts?
144+
145+
├─ YES (task) ──────────────────────────────────────────
146+
│ │
147+
│ Global cache.tasks enabled? (default: true, or true via --cache)
148+
│ ├─ NO → NOT CACHED
149+
│ └─ YES
150+
│ │
151+
│ Per-task cache set to false?
152+
│ ├─ YES → NOT CACHED (--cache does NOT override this)
153+
│ └─ NO or not set → CACHED <----- this is the default for tasks
154+
155+
└─ NO (script) ─────────────────────────────────────────
154156
155-
└─ NO (script) ─────────────────────────────────────────
156-
157-
Global cache.scripts enabled? (default: false, or true via --cache)
158-
├─ YES → CACHED
159-
└─ NO → NOT CACHED <----- this is the default for scripts
157+
Global cache.scripts enabled? (default: false, or true via --cache)
158+
├─ YES → CACHED
159+
└─ NO → NOT CACHED <----- this is the default for scripts
160160
```
161161

162162
In short: **tasks are cached by default, scripts are not.** `--no-cache` turns off caching for everything. `--cache` is equivalent to `cache: true` — it enables both `cache.tasks` and `cache.scripts`, but cannot override a task's per-task `cache: false`.

0 commit comments

Comments
 (0)