From 020d3d3d79338148873cfd78ba59856f63260f2f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Nov 2021 09:42:37 +0100 Subject: Remove resumable cache after upload success --- server/lib/redis.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/lib/redis.ts') diff --git a/server/lib/redis.ts b/server/lib/redis.ts index 76b7868e8..8aec4b793 100644 --- a/server/lib/redis.ts +++ b/server/lib/redis.ts @@ -271,6 +271,10 @@ class Redis { : '' } + deleteUploadSession (uploadId: string) { + return this.deleteKey('resumable-upload-' + uploadId) + } + /* ************ Keys generation ************ */ generateCachedRouteKey (req: express.Request) { -- cgit v1.2.3