From 62c6538b89ef9ad183e9ab55e152a2c2d2929296 Mon Sep 17 00:00:00 2001 From: Krzysiej Date: Mon, 26 Jan 2026 12:56:54 +0100 Subject: [PATCH] Render category tree on category pages --- src/Controller/CategoryController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/CategoryController.php b/src/Controller/CategoryController.php index 3e872cb..d870fa0 100644 --- a/src/Controller/CategoryController.php +++ b/src/Controller/CategoryController.php @@ -11,9 +11,9 @@ final class CategoryController extends BaseController #[Route('/category/{category}', name: 'app_category')] public function __invoke(string $category): Response { -// if($this->cache->getItem('list_category_'.$category)->isHit()) { -// return $this->render('productList.html.twig', ['listType' => 'category_'.$category]); -// } + if($this->cache->getItem('list_category_'.$category)->isHit()) { + return $this->render('productList.html.twig', ['listType' => 'category_'.$category]); + } /** @var Product[] $products */ $products = Product::with(['price', 'lowestPrice']) -- 2.52.0