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);