The search_api_list:{index} cache tag is not added to the view display

Created on 19 July 2022, almost 3 years ago
Updated 4 June 2023, almost 2 years ago

Problem/Motivation

If a view display is using the search_api_tag cache plugin, I'm expecting that display.{display}.cache_metadata.tags to contain also the search_api_list:{index} cache tag.

But the tag is missing.

Even SearchApiTagCache::getCacheTags() computes this tag, is never picked up in DisplayPluginBase::calculateCacheMetadata().

Steps to reproduce

* Create a view based on a Search API index.
* Set the cache plugin to Search API (tag-based)
* Save and export configuration
* Inspect the YAML file: the search_api_list:{index} is missing.

Proposed resolution

Make SearchApiTagCache implement CacheableDependencyInterface

Remaining tasks

None.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Views integration

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024