Mercurial > kallithea
comparison rhodecode/model/scm.py @ 3020:00498b3e4c88 beta
Cleaned the way cache keys are invalidated
should fix issue #504 RhodeCode is showing different
versions of README on different summary page loads
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 23 Nov 2012 16:59:30 +0100 |
parents | 5e1dadbc6f46 |
children | 280ac97cb37f |
comparison
equal
deleted
inserted
replaced
3019:e85380f05a5e | 3020:00498b3e4c88 |
---|---|
289 Puts cache invalidation task into db for | 289 Puts cache invalidation task into db for |
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) | 294 CacheInvalidation.set_invalidate(repo_name=repo_name) |
295 | 295 |
296 def toggle_following_repo(self, follow_repo_id, user_id): | 296 def toggle_following_repo(self, follow_repo_id, user_id): |
297 | 297 |
298 f = self.sa.query(UserFollowing)\ | 298 f = self.sa.query(UserFollowing)\ |
299 .filter(UserFollowing.follows_repo_id == follow_repo_id)\ | 299 .filter(UserFollowing.follows_repo_id == follow_repo_id)\ |