Reset template cache

This commit is contained in:
Erik
2025-05-01 09:45:32 +02:00
parent 8beddd2481
commit 09cb358015

View File

@@ -476,6 +476,7 @@ def reset_globals() -> Generator[None]:
# Reset the template cache # Reset the template cache
template.CACHED_TEMPLATE_LRU.clear() template.CACHED_TEMPLATE_LRU.clear()
template.CACHED_TEMPLATE_NO_COLLECT_LRU.clear() template.CACHED_TEMPLATE_NO_COLLECT_LRU.clear()
template._domain_states.cache_clear()
# Reset patch_json # Reset patch_json
if patch_json.mock_objects: if patch_json.mock_objects: