diff --git a/src/Controller/SearchController.php b/src/Controller/SearchController.php index 4f50049..5b63d78 100644 --- a/src/Controller/SearchController.php +++ b/src/Controller/SearchController.php @@ -38,8 +38,8 @@ final class SearchController extends AbstractController ): Response { $cacheId = sprintf("page.%s.%s", $input->mediaType, $input->tmdbId); - return $cache->get($cacheId, function (ItemInterface $item) use ($input) { - $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); +// return $cache->get($cacheId, function (ItemInterface $item) use ($input) { +// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0)); $result = $this->getMediaInfoHandler->handle($input->toCommand()); return $this->render('search/result.html.twig', [ 'results' => $result, @@ -52,6 +52,6 @@ final class SearchController extends AbstractController 'episode' => '' ] ]); - }); +// }); } } diff --git a/templates/components/SearchBar.html.twig b/templates/components/SearchBar.html.twig index ce91495..0fe00d7 100644 --- a/templates/components/SearchBar.html.twig +++ b/templates/components/SearchBar.html.twig @@ -11,7 +11,16 @@ placeholder="TV Show, Movie..." /> -