changeset 2763 | 39b42e158249 |
parent 2665 | 0c6281487f90 |
child 3016 | 5787d1cc8106 |
--- a/server/sources/pyrorql.py Tue Aug 11 12:21:45 2009 +0200 +++ b/server/sources/pyrorql.py Tue Aug 11 17:02:50 2009 +0200 @@ -127,6 +127,10 @@ register_persistent_options(myoptions) self._query_cache = TimedCache(30) + def reset_caches(self): + """method called during test to reset potential source caches""" + self._query_cache = TimedCache(30) + def last_update_time(self): pkey = u'sources.%s.latest-update-time' % self.uri rql = 'Any V WHERE X is CWProperty, X value V, X pkey %(k)s'