From 4e5d3e8dd15a96ceaa8ee4b7b5a39e2420d713cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Sat, 27 Sep 2025 18:28:14 +0200 Subject: [PATCH] Use cache of course --- 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 1792f2c..27dac1f 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());