{{ drupal_view('view1', 'block_2') }} renders only when cache is cleared I like to output 2 block-views in a template called "block--bar.html.twig", but only when i clear the cache they are printed.

(i installed Twig Tweak 8.x-2.x)

This is the template:

&lt;section{{ attributes.addClass(classes) }}&gt;
&lt;div class="foo1"&gt;
{{ drupal_view('view1', 'block_2') }}
  &lt;/div&gt;
&lt;div class="foo2"&gt;
{{ drupal_view('view2', 'block_1') }}
  &lt;/div&gt;
&lt;/section&gt;


Any help is appreciated.
The answer to the issue is to prevent that block to be cached. So first find the "block--bar.html.twig" and substitute in "add-block-id-name". 

 /**
     * Implements hook_preprocess_HOOK() for block.html.twig.
     */
    function YOUR_TEMPLATE_NAME_preprocess_block(&amp;$vars) {
      if($vars['derivative_plugin_id'] == 'add-block-id-name') {
        //-- This stops the block being cache in drupal 8
        $vars['#cache']['max-age'] = 0;

      }