Disabling view blocks cache
You can use

function hook_block_view_BASE_BLOCK_ID_alter(array &amp;$build, \Drupal\Core\Block\BlockPluginInterface $block) {
  //Change the title of the specific block.
  $build['#cache']['max-age'] = 0;
}


Also note that this does not disable the page cache for anonymous users. If you need that too, then you also need:


  \Drupal::service('page_cache_kill_switch')->trigger();