Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjarnason committed Feb 12, 2022
1 parent 690a556 commit b3c0db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_api/controllers/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b3c0db8

Please sign in to comment.