summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-10 10:33:35 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-10 10:33:35 +0100
commit4545838d331983041ad6ef06af327162a2a6cf28 (patch)
tree1e0585db39db69a99395a066b5318f0af56ac7b0
parentc9436219f3e97ef0103ae0af25f40d8061f71ca6 (diff)
downloadpykolab-4545838d331983041ad6ef06af327162a2a6cf28.tar.gz
Actually commit the auth_cache db purge_entries() deletion of stale records
-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():
"""