# HG changeset patch # User RhodeCode Admin # Date 2023-03-24 21:18:39 # Node ID 8fc1778b7e693d9abb880cb709193b8893e6e5c8 # Parent ccf62cdf9a1ed4997ce01a229ae3586a623aaaaa git/hg: skip double caching with bulk requests calls. - calling builk request which can be cached itself, would call other cached methods and that is much slower diff --git a/vcsserver/remote/git.py b/vcsserver/remote/git.py --- a/vcsserver/remote/git.py +++ b/vcsserver/remote/git.py @@ -324,6 +324,7 @@ class GitRemote(RemoteBase): for attr in pre_load: try: method = self._bulk_methods[attr] + wire.update({'cache': False}) # disable cache for bulk calls so we don't double cache args = [wire, rev] result[attr] = method(*args) except KeyError as e: diff --git a/vcsserver/remote/hg.py b/vcsserver/remote/hg.py --- a/vcsserver/remote/hg.py +++ b/vcsserver/remote/hg.py @@ -255,6 +255,7 @@ class HgRemote(RemoteBase): for attr in pre_load: try: method = self._bulk_methods[attr] + wire.update({'cache': False}) # disable cache for bulk calls so we don't double cache result[attr] = method(wire, commit_id) except KeyError as e: raise exceptions.VcsException(e)(