function _d8cache_entity_invalidate_cache_tags in Drupal 8 Cache Backport 7
Invalidate entity specific cache tags.
3 calls to _d8cache_entity_invalidate_cache_tags()
- d8cache_entity_delete in includes/
entity.inc - Implements hook_entity_delete().
- d8cache_entity_insert in includes/
entity.inc - Implements hook_entity_insert().
- d8cache_entity_update in includes/
entity.inc - Implements hook_entity_update().
File
- includes/
entity.inc, line 98 - Entity functions and hooks for the D8 caching system backport.
Code
function _d8cache_entity_invalidate_cache_tags($entity_type, $entity) {
$tags = _d8cache_entity_get_list_cache_tags($entity_type, $entity);
$tags = array_merge($tags, _d8cache_entity_get_cache_tags($entity_type, $entity));
drupal_invalidate_cache_tags($tags);
}