Merged in fix/redis-delete (pull request #3271)

feat(redis): include git hash when deleting without fuzzy

* feat(redis): include git hash when deleting without fuzzy

* Refactor


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2025-12-02 07:02:52 +00:00
parent 8f7e4b8d06
commit b1ccabb0b6
4 changed files with 40 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ export async function POST() {
revalidateManuallyLogger.info(`Tag: ${tag}`)
revalidateTag(tag)
cacheClient.deleteKey(tag, { fuzzy: false })
cacheClient.deleteKey(tag, { fuzzy: false, includeGitHashInKey: true })
return Response.json({ revalidated: true, now: Date.now() })
} catch (error) {