From ca93318a771c1032d072702d4d0cea8fb9603b60 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 24 Dec 2008 01:24:18 +0100 Subject: [FIX] restarting a non started pool does not crash anymore [FIX] when creating a database, the pool is restarted [FIX] when dropping a database, the caches are cleaned [IMP] add an option to specify the default cache timeout lp bug: https://launchpad.net/bugs/310986 fixed bzr revid: christophe@taupe-20081224002418-7pf9ctdzcl8ygvs7 --- bin/sql_db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/sql_db.py') diff --git a/bin/sql_db.py b/bin/sql_db.py index ec8ca3bf176..041f855b32b 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -227,7 +227,9 @@ def db_connect(db_name, serialize=0): return PoolManager.get(db_name) def close_db(db_name): - return PoolManager.close(db_name) + PoolManager.close(db_name) + tools.cache.clean_cache_for_db(db_name) + # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- cgit v1.2.3