-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: add purgeCache
helper
#433
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paulo
reviewed
Oct 11, 2023
paulo
reviewed
Oct 11, 2023
paulo
reviewed
Oct 11, 2023
src/lib/purge_cache.ts
Outdated
interface PurgeCacheOptions { | ||
apiURL?: string | ||
siteID?: string | ||
tags: string[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API can take all of these arguments (except paths
): https://www.notion.so/netlify/Cache-Purge-API-12b8eb7359c549a4aad56d528f19feb0?pvs=4#46c26a47bd3a4689bb38dcd97c7b6eae
paulo
reviewed
Oct 11, 2023
paulo
previously approved these changes
Oct 11, 2023
paulo
previously approved these changes
Oct 11, 2023
minivan
approved these changes
Oct 12, 2023
eduardoboucas
pushed a commit
that referenced
this pull request
Oct 12, 2023
🤖 I have created a release *beep* *boop* --- ## [2.3.0](v2.2.1...v2.3.0) (2023-10-12) ### Features * add `purgeCache` helper ([#433](#433)) ([f6098c0](f6098c0)) ### Bug Fixes * **deps:** update dependency @netlify/serverless-functions-api to v1.9.0 ([#431](#431)) ([82f6c12](82f6c12)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
This was referenced Jun 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which problem is this pull request solving?
Adds a
purgeCache
helper for https://www.notion.so/netlify/Cache-Purge-API-12b8eb7359c549a4aad56d528f19feb0, using the environment variable added in https://github.com/netlify/serverless-functions-api/pull/161.I still need to add some tests, but wanted to get the PR up sooner rather than later to get feedback on the approach.