core/modules/views/src/Plugin/views/cache/CachePluginBase.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php index f7e5fb9..59884ae 100644 --- a/core/modules/views/src/Plugin/views/cache/CachePluginBase.php +++ b/core/modules/views/src/Plugin/views/cache/CachePluginBase.php @@ -140,13 +140,7 @@ public function cacheSet($type) { 'total_rows' => isset($this->view->total_rows) ? $this->view->total_rows : 0, 'current_page' => $this->view->getCurrentPage(), ); - $tags = $this->view->getCacheTags(); - foreach ($this->view->result as $result) { - if (isset($result->_entity)) { - $tags = Cache::mergeTags($tags, $result->_entity->getCacheTags()); - } - } - \Drupal::cache($this->resultsBin)->set($this->generateResultsKey(), $data, $this->cacheSetExpire($type), $tags); + \Drupal::cache($this->resultsBin)->set($this->generateResultsKey(), $data, $this->cacheSetExpire($type), $this->view->getCacheTags()); break; case 'output': $this->storage['output'] = drupal_render($this->view->display_handler->output);