Also clear branding cache when clearing segment cache

This commit is contained in:
Ajay 2023-07-29 18:44:52 -04:00
parent 665b91eb65
commit 99cb22a5e6

View file

@ -119,6 +119,8 @@ function clearSegmentCache(videoInfo: { videoID: VideoID; hashedVideoID: VideoID
redis.del(videoLabelsKey(videoInfo.hashedVideoID, videoInfo.service)).catch((err) => Logger.error(err));
redis.del(videoLabelsHashKey(videoInfo.hashedVideoID, videoInfo.service)).catch((err) => Logger.error(err));
if (videoInfo.userID) redis.del(reputationKey(videoInfo.userID)).catch((err) => Logger.error(err));
clearBrandingCache(videoInfo);
}
}