fix(caches): actually obey wire cache flag on local method caching

This commit is contained in:
RhodeCode Admin 2024-10-23 11:32:20 +02:00
parent f096d65f31
commit 67674fcb3d
2 changed files with 6 additions and 5 deletions

View file

@ -213,12 +213,10 @@ class ScmModel(BaseModel):
try:
if name in repos:
raise RepositoryError('Duplicate repository name %s '
'found in %s' % (name, path))
raise RepositoryError(f'Duplicate repository name {name} found in {path}')
elif path[0] in rhodecode.BACKENDS:
backend = get_backend(path[0])
repos[name] = backend(path[1], config=config,
with_wire={"cache": False})
repos[name] = backend(path[1], config=config, with_wire={"cache": False})
except OSError:
continue
except RepositoryError: