comparison rhodecode/model/scm.py @ 3150:80abc924a38c beta

always update changeset cache after invalidation signal
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 05 Jan 2013 02:40:21 +0100
parents 280ac97cb37f
children 46234d2d388f
comparison
equal deleted inserted replaced
3149:68f9c216377d 3150:80abc924a38c
290 further global cache invalidation 290 further global cache invalidation
291 291
292 :param repo_name: this repo that should invalidation take place 292 :param repo_name: this repo that should invalidation take place
293 """ 293 """
294 CacheInvalidation.set_invalidate(repo_name=repo_name) 294 CacheInvalidation.set_invalidate(repo_name=repo_name)
295 repo = Repository.get_by_repo_name(repo_name)
296 if repo:
297 repo.update_changeset_cache()
295 298
296 def toggle_following_repo(self, follow_repo_id, user_id): 299 def toggle_following_repo(self, follow_repo_id, user_id):
297 300
298 f = self.sa.query(UserFollowing)\ 301 f = self.sa.query(UserFollowing)\
299 .filter(UserFollowing.follows_repo_id == follow_repo_id)\ 302 .filter(UserFollowing.follows_repo_id == follow_repo_id)\