cache->getItem('list_promos')->isHit()) { return $this->render('productList.html.twig', ['listType' => 'promos']); } $products = Product::whereRaw('priceCurrent < productStandardPrice') ->orderByDesc('starred') ->orderByDesc('created_by') ->with(['currentPrice', 'lowestPrice']) ->get(); return $this->render('productList.html.twig', ['products' => $products, 'listType' => 'promos']); } }