Skip to content

Commit 3236ec0

Browse files
authored
Added fix to invalidate cache, if cloundfront it provided without any condition
Added fix to invalidate cache, if cloundfront it provided without any condition
1 parent d3a33f4 commit 3236ec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

master_deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ check_invalidation_status() {
724724

725725
invalidate_cf_cache()
726726
{
727-
if [ "$CFCACHE" = "true" ]; then
727+
#if [ "$CFCACHE" = "true" ]; then
728728
if [ -z $AWS_CLOUD_FRONT_ID ]; then
729729
echo "Based on header applicaiton has invalidated"
730730
echo "Skipped which is based on AWS cloudfront ID.Kindly raise request to configure cloud front ID in deployment configuration"
@@ -733,7 +733,7 @@ invalidate_cf_cache()
733733
INVALIDATE_ID=`aws cloudfront create-invalidation --distribution-id $AWS_CLOUD_FRONT_ID --paths '/*' | $JQ '.Invalidation.Id'`
734734
check_invalidation_status "$INVALIDATE_ID"
735735
fi
736-
fi
736+
#fi
737737
}
738738

739739
download_envfile()

0 commit comments

Comments
 (0)