Fix search twig cache. #30

Merged
krzysiej merged 1 commits from feature/fix-search-cache into master 2026-01-01 18:48:54 +01:00
2 changed files with 680 additions and 473 deletions
Showing only changes of commit 5314a6a70a - Show all commits

1151
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,6 +17,6 @@ final class SearchController extends BaseController
->orWhere([['name', 'like', "%$search%"]])
->orWhere([['subTitle', 'like', "%$search%"]])->get();
return $this->render('productList.html.twig', ['products' => $products ?? [], 'search' => $search]);
return $this->render('productList.html.twig', ['products' => $products ?? [], 'search' => $search, 'listType' => 'search_'.$search]);
}
}