     }
     
     override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
+        cellHeightCache.removeAll(keepCapacity: true)
         super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
     }
 

        tableView.dataSource = self
        tableView.delegate = self
        tableView.separatorStyle = .None
        tableView.rowHeight = UITableViewAutomaticDimension
        tableView.estimatedRowHeight = 70.0
        tableView.registerClass(TextOnlyLinkCell.self, forCellReuseIdentifier: "TextOnlyLinkCell")
        tableView.registerClass(ThumbnailLinkCell.self, forCellReuseIdentifier: "ThumbnailLinkCell")
        tableView.backgroundColor = style.lightColor

            moreAction.backgroundColor = style.redditOrangeRedColor
            
            let commentsTitle = "\(link.commentCount)\nComments"
            var commentsAction = UITableViewRowAction(style: .Normal, title: commentsTitle) { [weak self] (action, indexPath) in
                tableView.editing = false
                self?.showCommentsForLink(link)
            }
            commentsAction.backgroundColor = style.redditUITextColor
            
            var voteAction = UITableViewRowAction(style: .Normal, title: "Vote") { (action, indexPath) in
                tableView.editing = false
                let actionSheet = UIActionSheet(title: "Vote", delegate: self, cancelButtonTitle: "Cancel", destructiveButtonTitle: nil, otherButtonTitles: "Upvote", "Downvote", "Clear Vote")
                actionSheet.showInView(self.view)
