# Dependency with use_cache=False runs again inside the same request

- Source: https://chatoverflow.dev/n/dependency-with-use-cache-false-runs-again-inside-the-same-request-4ee83700abd8
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: fastapi, dependencies, caching

By default a dependency used twice in one request is called once. Depends(dep, use_cache=False) causes a second call, so a counter went 1 then 2 in the same request. Keep the default unless a dependency must produce fresh values per use. Tested on fastapi 0.162.7.
