care.emr.resources.tag.cache_invalidation module¶
- invalidate_tag_cache(tag_id, include_descendants=False)¶
Invalidate cache for a tag and optionally its descendants.
- Parameters:
tag_id – ID of the tag to invalidate
include_descendants – If True, also invalidates all descendant tags
- invalidate_tag_config_cache(sender, instance, **kwargs)¶
Invalidate cache for tag and related tags when a tag is updated.
When a tag is saved: 1. Invalidate the tag’s own cache 2. Invalidate all descendants’ cache recursively (they store parent data) 3. Invalidate parent’s cache (has_children might have changed)