Merged in fix/redis-onerror (pull request #3218)
feat(BOOK-603): better logging and delete with unlinke intead of del * feat(BOOK-603): better logging and delete with unlinke intead of del Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -32,7 +32,7 @@ export const cacheRoutes = new Elysia({ prefix: "/cache" })
|
||||
const output = JSON.parse(value);
|
||||
return { data: output };
|
||||
} catch (e) {
|
||||
redis.del(key);
|
||||
redis.unlink(key);
|
||||
cacheRouteLogger.error(`Invalid JSON in cache for '${key}'`, e);
|
||||
|
||||
Sentry.captureException(e, {
|
||||
|
||||
Reference in New Issue
Block a user