#110641Deduplicate static TypoScript includes in template records
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
-
Wouter Wolters changed tracker
TaskBug <span data-processor="relativetime" data-value="2026-09-06T10:06:30+00:00" > 09/06/26, 10:06 </span> -
Gerrit Code Review pushed patch set 1 for main to change 95668 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-06T10:06:44+00:00" > 09/06/26, 10:06 </span> -
Gerrit Code Review pushed patch set 2 for main to change 95668 <span data-processor="relativetime" data-value="2026-09-06T10:16:52+00:00" > 09/06/26, 10:16 </span>
-
Wouter Wolters commented and changed status
Under ReviewResolved done0 %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.