I want Node breadcrumbs to be updated when the content is updated, so I added the following code to my breadcrumb generation class:
// Set cache tags $node_cache_tag = 'node:'.$node->id(); $breadcrumb->addCacheTags(array($node_cache_tag));
My concern is that this is a bad idea for sites with a lot of content (300,000+). I saw this post https://www.drupal.org/node/2891281 and noted that the default cache row limit is 5,000. Would the above code be an issue with over 300,000 nodes? Should I cache the breadcrumbs based on the taxonomy term that created the breadcrumbs (~1300 terms)?