From d0e08039dac74ce891f8db326983a692b6e81bd1 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 7 Apr 2016 14:46:31 +0100 Subject: [PATCH] don't modify expiry for temporary packs --- services/track-changes/app/coffee/PackManager.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/track-changes/app/coffee/PackManager.coffee b/services/track-changes/app/coffee/PackManager.coffee index b474d90605..b40e8ef46c 100644 --- a/services/track-changes/app/coffee/PackManager.coffee +++ b/services/track-changes/app/coffee/PackManager.coffee @@ -224,8 +224,8 @@ module.exports = PackManager = return callback(err) if err? if not pack? MongoAWS.unArchivePack project_id, doc_id, pack_id, callback - else if pack.expiresAt? and not pack.temporary and false # TODO: remove false, temporarily disabled - # we only need to touch the TTL on the listing of changes in the project + else if pack.expiresAt? and pack.temporary is false + # we only need to touch the TTL when listing the changes in the project # because diffs on individual documents are always done after that PackManager.increaseTTL pack, callback # only do this for cached packs, not temporary ones to avoid older packs