##// END OF EJS Templates
caches: removed unused cache option from repo by id fetch.
marcink -
r2889:1b472a1b default
parent child Browse files
Show More
@@ -92,13 +92,10 b' class RepoModel(BaseModel):'
92 settings_model = VcsSettingsModel(sa=self.sa)
92 settings_model = VcsSettingsModel(sa=self.sa)
93 return settings_model.get_repos_location()
93 return settings_model.get_repos_location()
94
94
95 def get(self, repo_id, cache=False):
95 def get(self, repo_id):
96 repo = self.sa.query(Repository) \
96 repo = self.sa.query(Repository) \
97 .filter(Repository.repo_id == repo_id)
97 .filter(Repository.repo_id == repo_id)
98
98
99 if cache:
100 repo = repo.options(
101 FromCache("sql_cache_short", "get_repo_%s" % repo_id))
102 return repo.scalar()
99 return repo.scalar()
103
100
104 def get_repo(self, repository):
101 def get_repo(self, repository):
General Comments 0
You need to be logged in to leave comments. Login now