✨ 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user