Skip to content
← All release notesNewanfra Core0.21.0

Answer repeat queries from a cache

Turn on a local query cache, so repeat queries skip the warehouse: data apps reload faster and agents stop paying for the same query twice.

Set how old a result your queries accept, in .anfra/config.yml:

query:
  default:
    cache:
      duration: 5m

Or per data app, in createApp({ query: { default: { cache: { duration: '5m' } } } }). Inspect shows each query's hit or miss and age. Refresh reads from the warehouse again. Run anfra cache clean after fixing warehouse data. A query reuses only its own exact result. Learn more (opens in a new tab)

Full changelog (opens in a new tab)