From 483fd084a2a5ccf347066ad89efa54c3eeb9bb30 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Sat, 14 Dec 2019 12:36:54 +0100 Subject: [PATCH] Tweak --- src/NewsWidget.php | 2 +- templates/news.html.twig | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NewsWidget.php b/src/NewsWidget.php index 8f93b1f..2d5431d 100644 --- a/src/NewsWidget.php +++ b/src/NewsWidget.php @@ -28,7 +28,7 @@ class NewsWidget extends BaseWidget implements TwigAware, RequestAware, CacheAwa protected $priority = 150; protected $template = '@news-widget/news.html.twig'; protected $zone = RequestZone::BACKEND; - protected $cacheDuration = 3600; + protected $cacheDuration = 4 * 3600; protected function run(array $params = []): ?string { diff --git a/templates/news.html.twig b/templates/news.html.twig index 40bce9e..30046ca 100644 --- a/templates/news.html.twig +++ b/templates/news.html.twig @@ -6,7 +6,9 @@

{{ title|raw }}

{{ news|raw }} {% if link %} - {{ __('general.phrase.read-more') }} + + {{ __('general.phrase.read-more') }} + {% endif %} \ No newline at end of file