We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0616f36 + bbc361a commit 5944d9aCopy full SHA for 5944d9a
public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme
@@ -103,6 +103,10 @@ function hdbt_subtheme_preprocess_paragraph(&$variables) {
103
->getViewBuilder('node')
104
->view($result->_entity, 'medium_teaser');
105
}
106
+
107
+ // Make sure any news item insert, update or delete invalidates the
108
+ // cache for this section.
109
+ $variables['#cache']['tags'][] = 'node_list:news_item';
110
111
112
0 commit comments