##// END OF EJS Templates
fixed bug introduced in latest commit
marcink -
r792:4c16ed1e beta
parent child Browse files
Show More
@@ -170,19 +170,6 class ScmModel(BaseModel):
170 'repository.admin')(repo_name, 'get repo check'):
170 'repository.admin')(repo_name, 'get repo check'):
171 return
171 return
172
172
173 pre_invalidate = True
174 if invalidation_list is not None:
175 pre_invalidate = repo_name in invalidation_list
176
177 if pre_invalidate:
178 invalidate = self._should_invalidate(repo_name)
179
180 if invalidate:
181 log.info('invalidating cache for repository %s', repo_name)
182 region_invalidate(_get_repo, None, repo_name)
183 self._mark_invalidated(invalidate)
184
185
186 #======================================================================
173 #======================================================================
187 # CACHE FUNCTION
174 # CACHE FUNCTION
188 #======================================================================
175 #======================================================================
@@ -224,6 +211,18 class ScmModel(BaseModel):
224 repo.dbrepo = dbrepo
211 repo.dbrepo = dbrepo
225 return repo
212 return repo
226
213
214 pre_invalidate = True
215 if invalidation_list is not None:
216 pre_invalidate = repo_name in invalidation_list
217
218 if pre_invalidate:
219 invalidate = self._should_invalidate(repo_name)
220
221 if invalidate:
222 log.info('invalidating cache for repository %s', repo_name)
223 region_invalidate(_get_repo, None, repo_name)
224 self._mark_invalidated(invalidate)
225
227 return _get_repo(repo_name)
226 return _get_repo(repo_name)
228
227
229
228
General Comments 0
You need to be logged in to leave comments. Login now