Skip to content

Commit f71a724

Browse files
committed
clear the cache before enabling maintenance mode, fixes #2
1 parent a022c78 commit f71a724

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

release-modman.sh

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ git checkout ${COMMIT_HASH}
4646
rm -rf .git
4747
cd ..
4848

49+
# clear the cache before enabling the maintenance mode to reduce the down time
50+
echo '... clearing the cache ...'
51+
php ${N98_MAGERUN} cache:flush
52+
4953
# enable maintenance mode
5054
echo '... enabling maintenance mode ...'
5155
> ${HTML_ROOT}/maintenance.flag

release.sh

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ cp ${SCRIPT_ROOT}/local.xml ${HTML_ROOT}-new/app/etc/local.xml
5050
# symlink media directory
5151
ln -s ${MEDIA_ROOT} ${HTML_ROOT}-new/media
5252

53+
# clear the cache before enabling the maintenance mode to reduce the down time
54+
echo '... clearing the cache ...'
55+
php ${N98_MAGERUN} cache:flush
56+
5357
# enable maintenance mode
5458
echo '... enabling maintenance mode ...'
5559
> ${HTML_ROOT}/maintenance.flag

0 commit comments

Comments
 (0)