Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to manually invalidate all the elements #25

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

mihaerzen
Copy link
Contributor

This PR fixes an issue where manually invalidating the CloudFront distributions was not possible anymore.

What was done

  • Introduce a new invalidateElements method which accepts all the elements that should be invalidated (previously named invalidate).
  • Introduce a new afterDeploy method, which filters the elements by autoInvalidate property.
  • Change the invalidate method to call the invalidateElements method with all the elements, so you can manually invoke it.

- [x] Introduce a new invalidateElements method which accepts all the elements that should be invalidated (previously named invalidate).
- [x] Introduce a new afterDeploy method, which filters the elements by autoInvalidate property.
- [x] Change the invalidate method to call the invalidateElements method with all the elements, so you can manually invoke it.
@aghadiry aghadiry merged commit ba44c52 into aghadiry:master Sep 1, 2021
@mihaerzen
Copy link
Contributor Author

@aghadiry Thank you for a fast review! 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants