Skip to content

[6.x] Cache term augmentation with taxonomy-qualified ID - #15974

Merged
jasonvarga merged 3 commits into
statamic:6.xfrom
Boefjim:bugfix/cache-term-augment-with-taxonomy
Nov 19, 2026
Merged

jasonvarga merged 3 commits into
statamic:6.xfrom
Boefjim:bugfix/cache-term-augment-with-taxonomy

Conversation

@Boefjim

@Boefjim Boefjim commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

When using a single-taxonomy field in a blueprint, the augmented value is cached based purely on the slug, since the taxonomy is left out of the value in these cases.
If two of these fields exist and each cover different taxonomies but happen to have the same slug across them, the second augmentation will read the value of first augmentation, causing a term from a different taxonomy to be read.
This can break whatever is being shown quite badly (I have ran into this issue on a Statamic project myself).

With this change, the taxonomy-qualified IDs will be used in the cache key to ensure it will only cache values from within the taxonomy that the terms are from.

@jasonvarga
jasonvarga merged commit 92d484b into statamic:6.x Nov 19, 2026
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants