Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 1181:49aebf5a8691
some speedups, some fixes to the benchmarking
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 23 Sep 2002 00:50:32 +0000 |
| parents | bd3b57859c37 |
| children | e0032f4ab334 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Fri Sep 20 23:20:57 2002 +0000 +++ b/roundup/backends/back_anydbm.py Mon Sep 23 00:50:32 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: back_anydbm.py,v 1.83 2002-09-20 05:08:00 richard Exp $ +#$Id: back_anydbm.py,v 1.84 2002-09-23 00:50:32 richard Exp $ ''' This module defines a backend that saves the hyperdatabase in a database chosen by anydbm. It is guaranteed to always be available in python @@ -593,6 +593,9 @@ # save the indexer state self.indexer.save_index() + self.clearCache() + + def clearCache(self): # all transactions committed, back to normal self.cache = {} self.dirtynodes = {}
