Skip to content

Commit

Permalink
invalidate cache on reviewing topic closes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovic Vannoorenberghe committed Jun 29, 2016
1 parent 88f5667 commit f9ecd9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/controllers/ReviewController.js
Expand Up @@ -49,6 +49,7 @@ module.exports = {
reviewable: scope.reviewable,
reviewable_id: topicId
}).then(function(instance) {
RedisClient.del('view_topic_' + topicId);
if(req.wantsJSON) {
return res.created(instance.toJSON());
} else {
Expand Down

0 comments on commit f9ecd9e

Please sign in to comment.