From 3aadb3ce4b57d99856476cee5e8a856780b5ff12 Mon Sep 17 00:00:00 2001 From: Roger Date: Tue, 5 May 2020 20:53:01 -0400 Subject: [PATCH] Change comment proxy cache TTL to 1 minute (#1250) --- src/server/middleware/api/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/middleware/api/comments.js b/src/server/middleware/api/comments.js index c2f9bc40d7..1056ad324c 100644 --- a/src/server/middleware/api/comments.js +++ b/src/server/middleware/api/comments.js @@ -13,7 +13,7 @@ const { isProduction } = require('../../utils') const { FORUM_URL } = require('../../../../src/consts') -const cache = new NodeCache({ stdTTL: 900 }) +const cache = new NodeCache({ stdTTL: 60 }) const getCommentCount = async (req, res) => { const {