diff --git a/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php b/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php index ec066ab64e..31c865d58f 100644 --- a/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php +++ b/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php @@ -24,6 +24,16 @@ public function getCacheContexts() { /** * {@inheritdoc} + */ + public function getCacheTags() { + $tags = parent::getCacheTags(); + // Add the tag for the View this block belongs to. + $tags = Cache::mergeTags($tags, ['config:views.view.' . $this->view->id()]); + return $tags; + } + + /** + * {@inheritdoc} * * @return array * A renderable array representing the content of the block with additional