Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300835

Add cache metadata to the ViewsBlockBase

$
0
0

Problem/Motivation

ViewsBlockBase is missing initial metadata (metadata collected in Drupal\Core\Cache\CacheableDependencyInterface). This will allow for efficient block caching and to enable lazy building in case it meets conditions. Check #3081346.

Proposed resolution

From what I can see that's not a problem to add all metadata since the View and its display are initialized in the constructor. \Drupal\views\Plugin\Block\ViewsBlockBase::__construct

Remaining tasks

Add metadata to all related \Drupal\Core\Cache\CacheableDependencyInterface methods.

User interface changes

No changes

API changes

No changes.

Data model changes

No changes.


Viewing all articles
Browse latest Browse all 300835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>