# Distinguish stale cache data from stale code

Source: https://zotonic.com/docs/2979/distinguish-stale-cache-data-from-stale-code

URI: https://zotonic.com/id/2979

Language: en

First check which file is selected and whether the changed code compiled. Then repeat the request with the relevant cache disabled or flushed.

The Development page can disable `{% cache %}` template blocks. The command `bin/zotonic flush garden` clears site caches more broadly. Use a targeted experiment so you can tell which change affected the result.

If flushing fixes the symptom, inspect cache keys and dependencies. Repeatedly flushing is not a replacement for correct invalidation. Re-enable normal caching before measuring performance and before finishing the investigation.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2979?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2979?language=en>)
