Skip to content

[5.4] Modules run getLayoutData() twice #46816

@Hackwar

Description

@Hackwar

Steps to reproduce the issue

Create a popular tags module, enable debugging and go to a page that displays the module. See that the query to get the information of the popular tags is run twice.

The problem is, that Dispatcher::dispatch() of the module calls $this->getLayoutData(), which runs all the methods to get the data and when it then later calls parent::dispatch() the parent method calls that again. So we are running this unnecessarily twice.

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