Description
When using Neos.NodeTypes.ContentReferences:ContentReferences that reference elements that contain additional references the whole Fusion part incl. db queries of referenceNodes is executed twice and leads to almost twice the rendering time.
The problem disappears when converting the rendering from Fluid to AFX like in my Gist https://gist.github.com/Sebobo/48fcc490e7655f66208aaf0259b43859

Steps to Reproduce
- Create text node on an empty page
- Create reference to that node on second page
- Create reference to the previous reference on third page
- Check Fusion trace with https://github.com/Flowpack/Flowpack.Fusion.Tracing
Expected behavior
referenceNodes is only evaluated once
Actual behavior
referenceNodes is evaluated twice
Affected Versions
Neos: 4.3+
Description
When using
Neos.NodeTypes.ContentReferences:ContentReferencesthat reference elements that contain additional references the whole Fusion part incl. db queries ofreferenceNodesis executed twice and leads to almost twice the rendering time.The problem disappears when converting the rendering from Fluid to AFX like in my Gist https://gist.github.com/Sebobo/48fcc490e7655f66208aaf0259b43859
Steps to Reproduce
Expected behavior
referenceNodesis only evaluated onceActual behavior
referenceNodesis evaluated twiceAffected Versions
Neos: 4.3+