Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.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 | 08a13a84ed43 |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Fri Sep 20 23:20:57 2002 +0000 +++ b/roundup/backends/rdbms_common.py Mon Sep 23 00:50:32 2002 +0000 @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.9 2002-09-20 05:08:00 richard Exp $ +# $Id: rdbms_common.py,v 1.10 2002-09-23 00:50:32 richard Exp $ # standard python modules import sys, os, time, re, errno, weakref, copy @@ -44,6 +44,10 @@ # open a connection to the database, creating the "conn" attribute self.open_connection() + def clearCache(self): + self.cache = {} + self.cache_lru = [] + def open_connection(self): ''' Open a connection to the database, creating it if necessary '''
