diff --git a/bin/cachewarmup b/bin/cachewarmup new file mode 100755 index 0000000..13196f6 --- /dev/null +++ b/bin/cachewarmup @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +bin/cli php console.php app:cache:warm-twig \ No newline at end of file diff --git a/src/Command/CacheWarmCommand.php b/src/Command/CacheWarmCommand.php index 4c8d167..6e6d618 100644 --- a/src/Command/CacheWarmCommand.php +++ b/src/Command/CacheWarmCommand.php @@ -16,7 +16,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\HttpFoundation\RequestStack; use Twig\Environment; -#[AsCommand(name: 'app:cache:warm-twig', description: '')] +#[AsCommand(name: 'app:cache:warm-twig', description: 'Warmup twig cache')] class CacheWarmCommand extends Command { public function __construct( diff --git a/templates/productList.html.twig b/templates/productList.html.twig index c0ba7e9..0d931cf 100644 --- a/templates/productList.html.twig +++ b/templates/productList.html.twig @@ -37,7 +37,7 @@ {{ product.subTitle }} -