Skip to content

Commit

Permalink
Run cache invalidation async
Browse files Browse the repository at this point in the history
By default it waits until the cache is invalidated. After the request is
sent, there is nothing we can do, except to fail due to a timeout or
something else.
  • Loading branch information
rail committed Jan 9, 2024
1 parent ee52b97 commit 3dcf967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ gcloud auth activate-service-account --key-file=.google-credentials.json
gsutil rsync -x old-index.yaml "build/artifacts/" "gs://${gcs_bucket}/"

# Invalidate any cached version of index.yaml (so this version is immediately available)
gcloud --project $google_project compute url-maps invalidate-cdn-cache $lb_name --path "/index.yaml"
gcloud --project $google_project compute url-maps invalidate-cdn-cache $lb_name --path "/index.yaml" --async

0 comments on commit 3dcf967

Please sign in to comment.