Changeset - 0db18ba129ea
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-04-05 12:47:34
marcin@python-works.com
scm_instance shouldn't be cached in anyway inside object
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -1151,13 +1151,13 @@ class Repository(Base, BaseModel):
 
        """
 
        CacheInvalidation.set_invalidate(repo_name=self.repo_name)
 

	
 
    def scm_instance_no_cache(self):
 
        return self.__get_instance()
 

	
 
    @LazyProperty
 
    @property
 
    def scm_instance(self):
 
        import rhodecode
 
        full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache'))
 
        if full_cache:
 
            return self.scm_instance_cached()
 
        return self.__get_instance()
0 comments (0 inline, 0 general)