Skip to content

Commit 4ce9230

Browse files
committed
chore: use existing helper purgeEdgeCache instead of calling purgeCache directly to ensure uniform handling and logging
1 parent 9fb72e1 commit 4ce9230

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/run/handlers/tags-handler.cts

+1-6
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ async function doRevalidateTagAndPurgeEdgeCache(tags: string[]): Promise<void> {
126126
}),
127127
)
128128

129-
await purgeCache({ tags, userAgent: purgeCacheUserAgent }).catch((error) => {
130-
// TODO: add reporting here
131-
getLogger()
132-
.withError(error)
133-
.error(`[NextRuntime]: Purging the cache for tags ${tags.join(', ')} failed`)
134-
})
129+
purgeEdgeCache(tags)
135130
}
136131

137132
export function markTagsAsStaleAndPurgeEdgeCache(tagOrTags: string | string[]) {

0 commit comments

Comments
 (0)