Umami page template renders header regions multiple times

Created on 31 March 2025, 4 days ago

Problem/Motivation

In Optimize redirect chain retrieval in VariationCache Active , I noticed that we're currently rendering the umami_search block 3 times, because there's a repeated check for whether or not there are any blocks in those regions, first one of the two, then either, then actually rendering them.

Steps to reproduce

Proposed resolution

As a demo theme, I think umami doesn't really need to worry about people removing those blocks?

If we for some reason do, we could store the rendered output into a variable and check and display that.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

Umami demo

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024