From c1c3c755ce906d7d05469da986d88b28b8fc0ecb Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 4 Nov 2018 14:41:22 -0800 Subject: [PATCH] reduce limit of stored data to 5 days (#597) --- routes/_database/cleanup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/_database/cleanup.js b/routes/_database/cleanup.js index a93e3c8..c07eea0 100644 --- a/routes/_database/cleanup.js +++ b/routes/_database/cleanup.js @@ -17,7 +17,7 @@ import { createPinnedStatusKeyRange, createThreadKeyRange } from './keys' import { getKnownInstances } from './knownInstances' const BATCH_SIZE = 20 -const TIME_AGO = 7 * 24 * 60 * 60 * 1000 // one week ago +const TIME_AGO = 5 * 24 * 60 * 60 * 1000 // five days ago const DELAY = 5 * 60 * 1000 // five minutes function batchedGetAll (callGetAll, callback) {