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.