summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/auth_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/auth/ldap/auth_cache.py')
-rw-r--r--pykolab/auth/ldap/auth_cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/auth_cache.py b/pykolab/auth/ldap/auth_cache.py
index ba14262..35fbebb 100644
--- a/pykolab/auth/ldap/auth_cache.py
+++ b/pykolab/auth/ldap/auth_cache.py
@@ -116,6 +116,7 @@ def set_entry(key, value):
def purge_entries(db):
db.query(Entry).filter(Entry.last_change <= (datetime.datetime.now() - datetime.timedelta(1))).delete()
+ db.commit()
def init_db():
"""