From 210b48c473a2243608a63028b80be1798100f678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Sat, 25 Oct 2025 22:04:31 +0200 Subject: [PATCH] Do use cache --- src/Controller/ArticleController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/ArticleController.php b/src/Controller/ArticleController.php index 74bc660..1948cbf 100644 --- a/src/Controller/ArticleController.php +++ b/src/Controller/ArticleController.php @@ -100,10 +100,10 @@ class ArticleController extends AbstractController $cacheKey = 'article_' . $article->getEventId(); $cacheItem = $articlesCache->getItem($cacheKey); - //if (!$cacheItem->isHit()) { + if (!$cacheItem->isHit()) { $cacheItem->set($converter->convertToHTML($article->getContent())); $articlesCache->save($cacheItem); - //} + } $key = new Key(); $npub = $key->convertPublicKeyToBech32($article->getPubkey());