X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Fbackends%2Fback_anydbm.py;h=a039f1598d17b0b030c7e1233cecc04846ecc25a;hb=21b3acdf5b78d378f1f9044815f69f33bd2f168f;hp=0fdcf28e40bd12eb71c0f4b062a11c1e7606cfde;hpb=aa5d6d741be87c239b431139c651532ded8d68bf;p=roundup.git diff --git a/roundup/backends/back_anydbm.py b/roundup/backends/back_anydbm.py index 0fdcf28..a039f15 100644 --- a/roundup/backends/back_anydbm.py +++ b/roundup/backends/back_anydbm.py @@ -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 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database): # save the indexer state self.indexer.save_index() + self.clearCache() + + def clearCache(self): # all transactions committed, back to normal self.cache = {} self.dirtynodes = {}