From 46582a2cd0f6233f6eea06ce0c45a7558c4630f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Mon, 19 May 2025 18:08:41 +0200 Subject: [PATCH] Cache article content --- 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 bf6cdc5..e454232 100644 --- a/src/Controller/ArticleController.php +++ b/src/Controller/ArticleController.php @@ -109,10 +109,10 @@ class ArticleController extends AbstractController $cacheKey = 'article_' . $article->getId(); $cacheItem = $articlesCache->getItem($cacheKey); -// if (!$cacheItem->isHit()) { + if (!$cacheItem->isHit()) { $cacheItem->set($converter->convertToHtml($article->getContent())); $articlesCache->save($cacheItem); - //} + } // // suggestions // $suggestions = $repository->findBy(['pubkey' => $article->getPubkey()], ['createdAt' => 'DESC'], 3);