caches: removed unused cache option from repo by id fetch.
This commit is contained in:
parent
ec504c9907
commit
357405796f
1 changed files with 1 additions and 4 deletions
|
|
@ -92,13 +92,10 @@ class RepoModel(BaseModel):
|
|||
settings_model = VcsSettingsModel(sa=self.sa)
|
||||
return settings_model.get_repos_location()
|
||||
|
||||
def get(self, repo_id, cache=False):
|
||||
def get(self, repo_id):
|
||||
repo = self.sa.query(Repository) \
|
||||
.filter(Repository.repo_id == repo_id)
|
||||
|
||||
if cache:
|
||||
repo = repo.options(
|
||||
FromCache("sql_cache_short", "get_repo_%s" % repo_id))
|
||||
return repo.scalar()
|
||||
|
||||
def get_repo(self, repository):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue