diff options
| author | Christophe Simonis <christophe@taupe> | 2008-12-24 01:24:18 +0100 |
|---|---|---|
| committer | Christophe Simonis <christophe@taupe> | 2008-12-24 01:24:18 +0100 |
| commit | ca93318a771c1032d072702d4d0cea8fb9603b60 (patch) | |
| tree | ad689dd46a9db0b906b30c60087e0805e8791029 /bin/sql_db.py | |
| parent | 203194ce45826ac6d7d2847bf278f5a558a39708 (diff) | |
[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
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |
