Add node entity type to cache id.

#6226