x-drupal-dynamic-cache: UNCACHEABLE

Created on 30 January 2023, over 1 year ago
Updated 26 February 2023, over 1 year ago

I use twig tweak to embed views in node.tpl.php

Enable Internal Dynamic Page Cache

Add {{ drupal_view('myview', 'block_1') }} to node.tpl.php - get x-drupal-dynamic-cache: UNCACHEABLE

Also {{ drupal_entity('webform', 'myform') }} causes this problem.

πŸ› Bug report
Status

Closed: outdated

Version

3.2

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia kazah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kazah
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡·πŸ‡ΊRussia Chi

    You need to trace cache metadata that come from the rendered view. Twig Tweak itself doesn't add any cache metadata in this case.

  • πŸ‡·πŸ‡ΊRussia kazah

    1.
    To solve this
     

    {{ drupal_view('myview', 'block_1') }}

    I found that one views field with aggregated option breaks cache metadata. I remove it and now it works.

    2.
    I solve this issue:

    {{ drupal_entity('webform', 'myform') }}

    by adding lazyload to webform block (or you can install last version of webform).

  • Status changed to Closed: outdated over 1 year ago
Production build 0.69.0 2024