# HG changeset patch # User Mads Kiilerich # Date 2013-04-04 13:55:53 # Node ID 05006e3e286b12ab598941737725413ea2395a5e # Parent 0db18ba129ea266e442b0cc9fa6fc7d3a6f681e2 api: drop commit - mark_for_invalidation will commit diff --git a/rhodecode/controllers/api/api.py b/rhodecode/controllers/api/api.py --- a/rhodecode/controllers/api/api.py +++ b/rhodecode/controllers/api/api.py @@ -221,7 +221,6 @@ class ApiController(JSONRPCController): try: invalidated_keys = ScmModel().mark_for_invalidation(repo.repo_name) - Session().commit() return ('Cache for repository `%s` was invalidated: ' 'invalidated cache keys: %s' % (repoid, invalidated_keys)) except Exception: