diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -292,6 +292,9 @@ class ScmModel(BaseModel): :param repo_name: this repo that should invalidation take place """ CacheInvalidation.set_invalidate(repo_name=repo_name) + repo = Repository.get_by_repo_name(repo_name) + if repo: + repo.update_changeset_cache() def toggle_following_repo(self, follow_repo_id, user_id):