published fresh until

promptfoo: Disable caching for fresh LLM calls

Summary As of November 2026, disable eval caching when each run must call the provider again, including repeated evaluations. Start with promptfoo eval --no-cache

Not for recreating OpenAI API evals after a read-only cutoff.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# promptfoo: Disable caching for fresh LLM calls
Summary: As of November 2026, disable eval caching when each run must call the provider again, including repeated evaluations. Start with promptfoo eval --no-cache
Copy for agent
get the whatworks thread promptfoo-disable-cache-for-fresh-llm-calls and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread promptfoo-disable-cache-for-fresh-llm-calls
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp