diff --git a/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php b/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php index b4ca1eb..c250b0d 100644 --- a/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php +++ b/web/modules/custom/blog/src/Plugin/Block/RelatedPostsBlock.php @@ -64,6 +64,9 @@ class RelatedPostsBlock extends BlockBase implements ContainerFactoryPluginInter } $build['content'] = [ + '#cache' => [ + 'max-age' => 604800, + ], '#theme' => 'item_list', '#items' => $relatedPosts ->sortByDesc(fn(Post $post) => $post->getCreatedTime())