##// END OF EJS Templates
invalidation: don't create CacheInvalidation records on startup...
Mads Kiilerich -
r3774:60335b70 beta
parent child Browse files
Show More
@@ -472,11 +472,6 b' def repo2db_mapper(initial_repo_list, re'
472 472 elif install_git_hook:
473 473 if db_repo.repo_type == 'git':
474 474 ScmModel().install_git_hook(db_repo.scm_instance)
475 # during starting install all cache keys for all repositories in the
476 # system, this will register all repos and multiple instances
477 cache_key = CacheInvalidation._get_cache_key(name)
478 log.debug("Creating invalidation cache key for %s: %s", name, cache_key)
479 CacheInvalidation.test_and_set_valid(name, None)
480 475
481 476 sa.commit()
482 477 removed = []
@@ -264,6 +264,9 b' class BaseTestApi(object):'
264 264 self._compare_error(id_, expected, given=response.body)
265 265
266 266 def test_api_invalidate_cache(self):
267 repo = RepoModel().get_by_repo_name(self.REPO)
268 repo.scm_instance_cached() # seed cache
269
267 270 id_, params = _build_data(self.apikey, 'invalidate_cache',
268 271 repoid=self.REPO)
269 272 response = api_call(self, params)
General Comments 0
You need to be logged in to leave comments. Login now