WIP: Cache invalidation by entity.

#6043 
WIP
`$entity` => `$entity_type`
`$type` = `$bundle`