From 1af675b1755fbfb1be0bff257b8f4256e41938d9 Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Thu, 5 Sep 2024 12:11:30 +0200 Subject: [PATCH] Move M2 cache flush to correct position --- recipe/magento2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipe/magento2.php b/recipe/magento2.php index 0e681e7c7..ba992290f 100644 --- a/recipe/magento2.php +++ b/recipe/magento2.php @@ -319,7 +319,6 @@ function magentoDeployAssetsSplit(string $area) 'magento:config:import', 'magento:upgrade:db', 'magento:maintenance:disable', - 'magento:cache:flush', ]); desc('Magento2 build operations'); @@ -337,6 +336,8 @@ function magentoDeployAssetsSplit(string $area) 'deploy:publish', ]); +after('deploy:symlink', 'magento:cache:flush'); + after('deploy:failed', 'magento:maintenance:disable'); // Artifact deployment section