Skip to content

Using directives in Cms Blocks / Cms Pages is causing same data loaded multiple times from Country and Region classes.  #37815

Open
@jakwinkler

Description

@jakwinkler

Preconditions and environment

Magento 2.4.5
Magento 2.4.6-p1

Steps to reproduce

  1. Disable Block HTML & Full Page HTML cache
  2. Create a CMS Block / CMS Page,
  3. Create multiple directives to display some links or data using the store URLs or some config data
{{store url=""}}
{{config path="web/secure/base_url"}}
  1. For the fun of it, do it 200 times
  2. Profile the page with black fire / other profiling tool

Expected result

Directory / Region is loaded only once during the page load

Actual result

Directory / Regions are loaded by the number of entries in the CMS Block / Page

{{store url=""}}
{{config path="web/secure/base_url"}}

image

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: PerformanceComponent: CmsIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.6-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions