Upgrade symfony from 7 to 8. Remove cache since it is now faster to open website.
This commit was merged in pull request #62.
This commit is contained in:
@@ -11,10 +11,6 @@ final class PromosController extends BaseController
|
||||
#[Route('/promos/{promo?}', name: 'app_promos')]
|
||||
public function __invoke(?string $promo): Response
|
||||
{
|
||||
if ($this->cache->getItem('list_promos')->isHit()) {
|
||||
return $this->render('productList.html.twig', ['listType' => 'promos' . $promo]);
|
||||
}
|
||||
|
||||
$products = Product::when(is_null($promo), fn($q) => $q->whereRaw('priceCurrent < productStandardPrice'))
|
||||
->orderByDesc('starred')
|
||||
->orderByDesc('created_by')
|
||||
|
||||
Reference in New Issue
Block a user