From b3c0db859d327a44f96d0b7d18bbccf43e7979bd Mon Sep 17 00:00:00 2001 From: Robert Bjarnason Date: Sat, 12 Feb 2022 18:15:29 +0000 Subject: [PATCH] Work --- server_api/controllers/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_api/controllers/posts.js b/server_api/controllers/posts.js index bea6b6814a..6fdcc54997 100644 --- a/server_api/controllers/posts.js +++ b/server_api/controllers/posts.js @@ -709,7 +709,7 @@ const sendPostPoints = (req, res, redisKey) => { router.get('/:id/points', auth.can('view post'), function(req, res) { const redisKey = "cache:post_points:"+req.params.id+(req.query.offsetUp ? ":offsetup:"+req.query.offsetUp : "")+":"+(req.query.offsetDown ? ":offsetdown:"+req.query.offsetDown : ""); - // Disable cache for now until we figure out to invalidate the cache on delete points + //TODO: Enable again but disabled cache for now until we figure out to invalidate the cache on delete points if (true || process.env.DISABLE_POST_POINTS_CACHE) { sendPostPoints(req, res); } else {