API page: https://api.drupal.org/api/drupal/core%21modules%21views%21views.theme.i...
When a view is set to render nodes as content, Drupal produces template suggestions for the nodes that cease to work once caching is turned on. This can really ruin your day if you have not completely tested the site with caching turned on.
Until the issue is fixed, add a warning to the views template documentation (I can't find anywhere else to put this):
WARNING:
When a view is set to render nodes as "Content," you may see template suggestions for each node in the form: "node--view--VIEW-NAME--VIEW-ID.html.twig" and "node--VIEW-NAME.html.twig". Do not use these theme suggestions. They will stop working once you turn on caching for the site. See
https://www.drupal.org/node/2728419 β
for a discussion of the issue.
Active
10.3 β¨
documentation