Problem/Motivation

Discovered while debugging #3612284: Circular reference on Drupal 11.4: logger.raven eagerly resolves event_dispatcher during container build, it's possible to get circular references where the cache tags invalidator is loaded, because all invalidator services and all bins are eagerly loaded into the invalidator.

Tagged iterators would let us lazily load them instead, only when invalidateTags() is actually called. This might also improve performance.

Steps to reproduce

Proposed resolution

Convert the invalidators and bins properties to tagged iterators injected into the constructor.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3622391

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

longwave created an issue. See original summary.

longwave-bot made their first commit to this issue’s fork.

longwave’s picture

Status: Active » Needs review

smustgrave’s picture

Status: Needs review » Needs work

Small comment feel free to self RTBC if it's nothing or you delete. @longwave.