feat(command): Active la régénération forcée du cache LiipImagine

Supprime les blocs try/catch inutiles pour la régénération.
This commit is contained in:
Serreau Jovann
2026-02-05 08:47:09 +01:00
parent 093bb4ad9b
commit 87de5613ea

View File

@@ -53,24 +53,18 @@ class AppWarmupImagesCommand extends Command
$products = $this->productRepository->findAll();
$options = $this->optionsRepository->findAll();
/*
$io->title('Régénération FORCÉE du cache LiipImagine');
$io->note('Le cache existant sera supprimé avant chaque génération.');
$io->section('Produits');
try {
$this->processCollection($products, 'imageFile', $io);
} catch (\Exception $exception) {
$this->processCollection($products, 'imageFile', $io);
}
$io->section('Options');
try {
$this->processCollection($options, 'imageFile', $io);
}
catch (\Exception $exception) {
}
$this->processCollection($options, 'imageFile', $io);
$io->success('Toutes les images ont été régénérées avec succès.');
*/
return Command::SUCCESS;
}