1. Ankit Solanki
  2. RhodeCode

Commits

Marcin Kuzminski  committed ba697e2

fixed a bug in cache invalidation

  • Participants
  • Parent commits 91708b9
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/model/db.py

View file
             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()