Issue Bug Resolved

#110641Deduplicate static TypoScript includes in template records

Wouter Wolters 09/06/26, 10:04 updated 11/19/26, 10:01

Description

Duplicate entries in sys_template.include_static_file cause the same static TypoScript include to be added and evaluated repeatedly. Lists loaded from
include_static_file.txt already remove duplicates, making the behavior inconsistent.

Deduplicate each template record’s include list after trimming whitespace and removing empty entries. Preserve the first occurrence and the order of distinct
includes. Includes shared by separate template records remain unaffected.

Functional tests cover constants and setup, both values of includeStaticAfterBasedOn, and uncached and cached tree builds.

Reviews 1

History 24

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-19T10:01:06+00:00" > 11/19/26, 10:01 </span>

    Applied in changeset commit:62095e385743e0b70a97b58e4e0f86cb93a1d8ad.