Changeset - ba697e2f71ff
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-07-15 19:34:56
marcin@python-works.com
fixed a bug in cache invalidation
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -474,16 +474,16 @@ class Repository(Base, BaseModel):
 
    def scm_instance_cached(self):
 
        @cache_region('long_term')
 
        def _c(repo_name):
 
            return self.__get_instance()
 

	
 
        inv = self.invalidate
 
        if inv:
 
        if inv is not None:
 
            region_invalidate(_c, None, self.repo_name)
 
            #update our cache
 
            inv.cache_key.cache_active = True
 
            inv.cache_active = True
 
            Session.add(inv)
 
            Session.commit()
 

	
 
        # TODO: remove this trick when beaker 1.6 is released
 
        # and have fixed this issue
 
        rn = safe_str(self.repo_name)
0 comments (0 inline, 0 general)