Skip to content

Nested ContentReferences Fusion is evaluated twice #3355

@Sebobo

Description

@Sebobo

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

reference-evaluation

Steps to Reproduce

  1. Create text node on an empty page
  2. Create reference to that node on second page
  3. Create reference to the previous reference on third page
  4. 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+

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions