comparison rhodecode/model/db.py @ 3680:0db18ba129ea beta

scm_instance shouldn't be cached in anyway inside object
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 05 Apr 2013 12:47:34 +0200
parents ddc4c12f00fb
children cf65b2c1b69d
comparison
equal deleted inserted replaced
3679:00a486622a2e 3680:0db18ba129ea
1152 CacheInvalidation.set_invalidate(repo_name=self.repo_name) 1152 CacheInvalidation.set_invalidate(repo_name=self.repo_name)
1153 1153
1154 def scm_instance_no_cache(self): 1154 def scm_instance_no_cache(self):
1155 return self.__get_instance() 1155 return self.__get_instance()
1156 1156
1157 @LazyProperty 1157 @property
1158 def scm_instance(self): 1158 def scm_instance(self):
1159 import rhodecode 1159 import rhodecode
1160 full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache')) 1160 full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache'))
1161 if full_cache: 1161 if full_cache:
1162 return self.scm_instance_cached() 1162 return self.scm_instance_cached()