# invalidate_config_sources

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/configuration/service/invalidate_config_sources)

Drop the cached managed snapshot and the shared process resolver.

Test-only. Production reloads pass `refresh=True` instead, which keeps the
last snapshot that parsed cleanly if the new one fails; clearing the cache
first would leave readers with an empty managed table on a failed reload.

Both caches are cleared together because they are keyed differently:
dropping only the managed snapshot leaves the resolver holding the previous
generation, which is the half most tests actually read.

## Signature

```python
invalidate_config_sources() -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/configuration/service.py#L900)