Mercurial > kallithea
diff rhodecode/lib/utils.py @ 3693:6843cabe9925 beta
removed duplicated logic of how we invalidate caches for repos
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 03 Apr 2013 02:35:01 +0200 |
parents | 4c78a0855a17 |
children | 34093903b505 |
line wrap: on
line diff
--- a/rhodecode/lib/utils.py Fri Apr 05 19:42:07 2013 +0200 +++ b/rhodecode/lib/utils.py Wed Apr 03 02:35:01 2013 +0200 @@ -356,19 +356,6 @@ config[k] = v -def invalidate_cache(cache_key, *args): - """ - Puts cache invalidation task into db for - further global cache invalidation - """ - - from rhodecode.model.scm import ScmModel - - if cache_key.startswith('get_repo_cached_'): - name = cache_key.split('get_repo_cached_')[-1] - ScmModel().mark_for_invalidation(name) - - def map_groups(path): """ Given a full path to a repository, create all nested groups that this