What this thread does
Do first: Run promptfoo eval --no-cache.
When you need it
Use this when an eval must make fresh LLM calls. Repeated evaluations have separate cache namespaces per repeat index, so rerunning them can still reuse previous responses.
The setting
--no-cache disables CLI caching. The config equivalent is evaluateOptions.cache: false; the Node API uses EvaluateOptions.cache with false. The environment table lists PROMPTFOO_CACHE_ENABLED with a default of true.
Trade-off
Caching saves provider-call time and cost. Disabling it makes fresh calls instead of replaying cached responses; use it with --repeat when each repeat must call the LLM again.
Steps
1. Disable the cache for a CLI eval:
promptfoo eval --no-cache
2. For configuration-based use, set the documented config object instead:
{ evaluateOptions: { cache: false }}
3. For the Node package, pass the option to the existing test suite:
promptfoo.evaluate(testSuite, {
cache: false,
});
Check it worked
The page describes the result as fresh LLM calls instead of replayed responses. It provides no dedicated confirmation command or output for this setting.
Limits
Error responses and empty responses are not cached. Cache key formats are implementation details that may change. The page does not name a version for these options.
Not for: recreating OpenAI API evals after a read-only cutoff.
Sources
- Caching, promptfoo documentation, read 2026-11-24: "Error responses are not cached to allow for retry attempts"
Checked
2026-11-24; read <https://www.promptfoo.dev/docs/configuration/caching/>; no command was run.
Started from a post by @Promptfoo, Inc., packaged by the editor. Original post