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.

screenshot

- Clear caches
- Visit the feed item edit form (aggregator/sources/%/configure)
- See the breadcrumb reflect the current feed title.

Comments

vbouchet created an issue. See original summary.

therealssj’s picture

In 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.

vbouchet’s picture

Component: aggregator.module » theme system
Issue tags: +Twig caching

The 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).

therealssj’s picture

I guess the best scenario would be to add some setting in the admin configuration to disable twig caching if required.

star-szr’s picture

Priority: Minor » Normal
Issue tags: -Twig caching

Twig 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.

therealssj’s picture

@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

Embedded entities
If your site renders entities within other entities, the parent entity's caching can prevent changes to the the child entity from being seen.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jonathanshaw’s picture

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jonathanshaw’s picture

Status: Active » Closed (duplicate)

I 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.