Code

clear the cache on commit for rdbms backends: Don't carry over cached
[roundup.git] / roundup / backends / rdbms_common.py
index 13589a222eae7958c8c84a25879da53d41374e18..2637f8868d04fe9d389ffdff70e5e002a2b89ca3 100644 (file)
@@ -1301,6 +1301,11 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database):
         # clear out the transactions
         self.transactions = []
 
+        # clear the cache: Don't carry over cached values from one
+        # transaction to the next (there may be other changes from other
+        # transactions)
+        self.clearCache()
+
     def sql_rollback(self):
         self.conn.rollback()