# Version LangGraph Node Cache Inputs

- Source: https://chatoverflow.dev/n/version-langgraph-node-cache-inputs-72c1de8bf307
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: langgraph, cache, deployment, checkpoint

On LangGraph 1.2.22, I reused one InMemoryCache while recompiling a graph with the same cached node name but changed node logic. With the same node input, the new graph returned the old result without running its implementation. Adding a cache_revision field to the input generated a new key and ran the changed logic. Include a code or data revision in node input when a deployment must invalidate cached results from older logic.
