Issue Bug Resolved

#107828cache_tags is not validated in TCA

Łukasz Uznański 10/24/25, 09:34 updated 09/01/26, 12:25

Description

If you set value of your cache_tags for page to value with space, you will break your page. I’m not sure if it’s intended, but throwing exception during misconfiguration in field is not really user friendly solution.
I would rather add validation or normalize that field, or at least give user some information that he is about to break frontend for that page, if he changes value of that field.
It’s problem at least on version v11 and v13, not tested on current main yet.
clipboard-202510241133-45vgh.png

Reviews 3

Files 1

History 36

  1. Marcin Sągol commented <span data-processor="relativetime" data-value="2025-10-24T09:50:26+00:00" > 10/24/25, 09:50 </span>

    So to make it more clear:
    • the cache_tags field expects as a valid value multiple tags separated by comma
    • the cache tag can’t conaint space etc.
    • this field is not validated on the backend side, to prevent user from using invalid tags
    • when invalid tag is entered, it will break the page as an exeption will be thrown
  2. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-01T12:25:12+00:00" > 09/01/26, 12:25 </span>

    Applied in changeset commit:635c6957e85afc3b93cd8312a306bc4fbb980589.