# HG changeset patch # User Marcin Kuzminski # Date 2011-07-15 17:34:56 # Node ID ba697e2f71ff1409a60b923b4ecf43b501fc586f # Parent 91708b96e991195c17f474112854dbdb9027df92 fixed a bug in cache invalidation diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -477,10 +477,10 @@ class Repository(Base, BaseModel): 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()