Replace CacheablePluginInterface with CacheableDependencyInterface

Created on 2 April 2015, almost 10 years ago
Updated 16 February 2025, 8 days ago

Problem/Motivation

Back in #2318377: Determine whether a view is cacheable and its required contexts, store this i/t config entity we introduced a CachePluginInterface so that views plugin can specify which context their output/filtering is varied by.
CacheableDependencyInterface got introduced in the meantime which has the same feature, but instead of a boolean flag for cacheability
has a max-age.

Proposed resolution

Replace all usages and remove \Drupal\views\Plugin\CacheablePluginInterface

Remaining tasks

None.

User interface changes

None.

API changes

Yes: CachablePluginInterface is removed in favor of CacheableDependencyInterface.

Data model changes

Yes: config schema change.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
📌 Task
Status

Fixed

Version

8.0 ⚰️

Component

views.module

Created by

🇩🇪Germany dawehner

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

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