# HG changeset patch # User RhodeCode Admin # Date 2021-12-03 14:17:11 # Node ID 90c1bb1156c7062d55fa7833af101e2215744fe5 # Parent 1a8b414c1373c98ecf22093125dd7b1da54eb891 vcs-call-cache: controll via hidden .ini flag diff --git a/rhodecode/lib/vcs/client_http.py b/rhodecode/lib/vcs/client_http.py --- a/rhodecode/lib/vcs/client_http.py +++ b/rhodecode/lib/vcs/client_http.py @@ -245,8 +245,9 @@ class RemoteRepo(object): cache_on = False cache_key = '' - if name in ['is_large_file', 'is_binary', 'fctx_size', 'bulk_request']: - cache_on = True and rhodecode.CONFIG.get('vcs.methods.cache') + local_cache = rhodecode.CONFIG.get('vcs.methods.cache') + if local_cache and name in ['is_large_file', 'is_binary', 'fctx_size', 'bulk_request']: + cache_on = True cache_key = compute_key_from_params(name, args[0], args[1]) @self._cache_region.conditional_cache_on_arguments(