diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php index cdf9cb5..f5ce086 100644 --- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php +++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php @@ -232,7 +232,11 @@ public function getCacheTags() { // @TODO: maybe there is a better way to add bundle related list cache tags? foreach ((array) $this->view->filter as $filter) { if ($filter->getPluginId() == 'bundle') { - foreach (array_keys($filter->value) as $bundle) { + $value = array_keys($filter->value); + if ($filter->operator == 'not in') { + $value = array_diff(array_keys($filter->getValueOptions()), $value); + } + foreach ($value as $bundle) { $listTags[] = $filter->getEntityType() . '_list:' . $bundle; $skipListTags[] = $filter->getEntityType(); }