Skip to content

Commit 3d04623

Browse files
authored
Update cache-clear.sh
1 parent 52276f6 commit 3d04623

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

‎script/frameworks/magento/cache-clear.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ if [ "$1" = "fast" ]; then
3535

3636
else
3737

38-
sudo chmod ugo=rwx "${MAGENTO_DIR}var/cache" -R
39-
sudo chmod ugo=rwx "${MAGENTO_DIR}pub/static/_cache" -R
38+
sudo chmod ugo=rwx "${MAGENTO_DIR}var/cache" -R
39+
sudo chmod ugo=rwx "${MAGENTO_DIR}pub/static/_cache" -R
40+
41+
fxTitle "⚙️ Stopping services..."
42+
sudo nginx -t && sudo service nginx stop
43+
sudo service ${PHP_FPM} restart
4044
fi
4145

4246

@@ -177,6 +181,10 @@ fi
177181

178182
if [ -z "${FAST_CACHE_CLEAR}" ] && [ "${APP_ENV}" != "dev" ]; then
179183

184+
fxTitle "⚙️ Restarting services..."
185+
sudo service ${PHP_FPM} restart
186+
sudo nginx -t && sudo service nginx start
187+
180188
wsuMage maintenance:disable
181189

182190
systemctl --all --type service | grep -q "varnish"

0 commit comments

Comments
 (0)