diff --git a/core/modules/views/config/schema/views.data_types.schema.yml b/core/modules/views/config/schema/views.data_types.schema.yml index bfd63ba..da16f2c 100644 --- a/core/modules/views/config/schema/views.data_types.schema.yml +++ b/core/modules/views/config/schema/views.data_types.schema.yml @@ -268,7 +268,7 @@ views_display: field_langcode_add_to_query: type: string label: 'Add the field language to the query' - cache: + cache_information: type: mapping mapping: cacheable: diff --git a/core/modules/views/src/Entity/View.php b/core/modules/views/src/Entity/View.php index 63291ff..81ec8ae 100644 --- a/core/modules/views/src/Entity/View.php +++ b/core/modules/views/src/Entity/View.php @@ -319,10 +319,10 @@ protected function fillCacheInformation() { foreach ($displays as $display_id => $display) { $executable->setDisplay($display_id); - list($display['cache']['contexts'], $display['cache']['cacheable']) = $executable->getDisplay()->getCacheInformation(); + list($display['cache_information']['contexts'], $display['cache_information']['cacheable']) = $executable->getDisplay()->getCacheInformation(); // Always include at least the language context. - $display['cache']['contexts'][] = 'cache.context.language'; - $display['cache']['contexts'] = array_unique($display['cache']['contexts']); + $display['cache_information']['contexts'][] = 'cache.context.language'; + $display['cache_information']['contexts'] = array_unique($display['cache']['contexts']); } }