Steps to reproduce:
- Create a new feed item (aggregator/sources/add)
- Visit the feed item edit form (aggregator/sources/%/configure)
- See the breadcrumb reflect the current feed title.
- Edit the feed title, save the title
- Visit the feed item edit form (aggregator/sources/%/configure)
- See the breadcrumb does not the reflect the current feed title.

- Clear caches
- Visit the feed item edit form (aggregator/sources/%/configure)
- See the breadcrumb reflect the current feed title.
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot-d8-git dd 8083 2016-03-11 12-50-38.png | 38.3 KB | vbouchet |
Comments
Comment #2
therealssj commentedIn drupal by default twig templates are cached.
The breadcrumb being rendered by a twig template gets cached and hence does not update with subsequent changes.
If you wish to disable twig template caching you can read how to do that here.
Comment #3
vbouchetThe issue seems more global.
I have reproduced the same by creating and then editing a node. The breadcrumb in the edit page does not reflect the updated title.
I understand this is a caching issue. Even if there is a way for us as developers to clear cache or disable cache, this is not acceptable for a live website (I have not found a front page with the issue yet but it is probably the case).
Comment #4
therealssj commentedI guess the best scenario would be to add some setting in the admin configuration to disable twig caching if required.
Comment #5
star-szrTwig doesn't cache the values of variables or anything like that. If it did we wouldn't use it, I promise :)
Without debugging I highly suspect if this is a cache issue it is on a different level such as the render array/render cache level. It just doesn't make sense to me for this to be Twig, happy to be proven wrong of course.
You can disable twig cache via services.yml to confirm/refute this.
Thanks for the report.
Comment #6
therealssj commented@Cottser yes, you are correct.
It is actually the render cache which is causing this.
And it is actually a known issue as written here
Comment #7
dawehnerThis really reminds me of #2607920: Breadcrumb render cache not invalidated when entity label changes
Comment #10
jonathanshawI think this is also a partial duplicate of
#2513570: Changing name (label) of content type is not reflected in breadcrumb link text
Comment #14
jonathanshawI think this is now a straightforward duplicate of #2607920: Breadcrumb render cache not invalidated when entity label changes, which has much more advanced discussion and patches.