Fix search twig cache.

This commit was merged in pull request #30.
This commit is contained in:
2026-01-01 18:46:18 +01:00
parent dc287aadc6
commit 5314a6a70a
2 changed files with 680 additions and 473 deletions

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