Skip to content

fix: make revalidateTags no-op when list of tags is empty #2727

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

Merged
merged 7 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: oops
  • Loading branch information
eduardoboucas committed Dec 18, 2024
commit 04e54514fd9afd5a61dc4ad824aa37277efd50f9
2 changes: 1 addition & 1 deletion src/run/handlers/cache.cts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {

getLogger().debug(`Purging CDN cache for: [${tag}]`)
requestContext.trackBackgroundWork(
purgeCache({ tags: tag.split(/,|%2c/gi) }).catch((error) => {
purgeCache({ tags }).catch((error) => {
// TODO: add reporting here
getLogger()
.withError(error)
Expand Down
Loading