- Issue created by @kiwad
Why using "node" entity_type in your hooks, why not go with hook_entity_delete / hook_entity_update / hook_entity_insert instead, therefore you could trigger cache invalidate for other entity types
Then in function cacherefs_clear($entity), it would still make sense by using $entity->getEntityTypeId() and $entity->bundle() instead of node and getType()
Active
2.0
Code