# HG changeset patch # User Marcin Kuzminski # Date 2019-06-05 11:47:50 # Node ID ad9521f0382cf53f99f16af3af9b70ee0569c7ca # Parent 267daa274741a7d6fca2c2fb82e0443e369fb18a last_update: save update time always diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -2343,6 +2343,12 @@ class Repository(Base, BaseModel): log.debug('updated repo %s with new commit cache %s', self.repo_name, cs_cache) else: + cs_cache = self.changeset_cache + cs_cache['updated_on'] = time.time() + self.changeset_cache = cs_cache + Session().add(self) + Session().commit() + log.debug('Skipping update_commit_cache for repo:`%s` ' 'commit already with latest changes', self.repo_name)