diff options
| author | Barry Warsaw | 2009-08-08 00:45:21 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-08-08 00:45:21 -0400 |
| commit | c4a053b184f16156cafd984b01c055d70414c4b6 (patch) | |
| tree | f32b75b4ed1cd29a60f924107dd61968806130cd /src | |
| parent | c34682f40fabd9001c775f34fd082b9c00b7f96a (diff) | |
| download | mailman-c4a053b184f16156cafd984b01c055d70414c4b6.tar.gz mailman-c4a053b184f16156cafd984b01c055d70414c4b6.tar.zst mailman-c4a053b184f16156cafd984b01c055d70414c4b6.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/database/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/database/__init__.py b/src/mailman/database/__init__.py index a60a0d23c..dc3a86560 100644 --- a/src/mailman/database/__init__.py +++ b/src/mailman/database/__init__.py @@ -28,6 +28,7 @@ import logging from locknix.lockfile import Lock from lazr.config import as_boolean from pkg_resources import resource_string +from storm.cache import GenerationalCache from storm.locals import create_database, Store from urlparse import urlparse from zope.interface import implements @@ -106,7 +107,7 @@ class StockDatabase: # half dozen and all... touch(url) database = create_database(url) - store = Store(database) + store = Store(database, GenerationalCache()) database.DEBUG = (as_boolean(config.database.debug) if debug is None else debug) # Check the sqlite master database to see if the version file exists. |
