The shs.term_data endpoint returns taxonomy terms from a specific vocabulary, but its cacheability metadata does not include the vocabulary-specific list cache tag (taxonomy_term_list:{vocabulary_id}).

ShsTermCacheDependency currently includes the generic taxonomy term list tag and tags for the returned terms. This does not fully describe the response's dependency on the vocabulary being queried.

As a result, cache invalidation mechanisms relying on bundle-specific cache tags may retain stale SHS responses after taxonomy terms are added, updated, moved, or deleted. The SHS widget can then display outdated options until the relevant caches are cleared.

Issue fork shs-3613025

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gugalamaciek created an issue. See original summary.

gugalamaciek’s picture

Assigned: gugalamaciek » Unassigned
Status: Active » Needs review

joseph.olstad made their first commit to this issue’s fork.

joseph.olstad’s picture

very good work, merging this.

joseph.olstad’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

joseph.olstad’s picture

Assigned: Unassigned » joseph.olstad
Status: Fixed » Active

issue , looking into it

  • joseph.olstad committed a593b989 on 3.0.x
    fix: #3613025 Add vocabulary-specific list cache tags to SHS term data...

  • joseph.olstad committed 1435ddb5 on 2.0.x
    fix: #3613025 Add vocabulary-specific list cache tags to SHS term data...
joseph.olstad’s picture

Assigned: joseph.olstad » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.