summaryrefslogtreecommitdiffstats
path: root/bin/kolab_smtp_access_policy.py
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2014-09-11 21:46:37 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-09-11 21:46:37 +0200
commit8517e1d8ca37d1d4f9fb649a91e222de0d83f59b (patch)
tree188dab18a7d38e19ec15602393814d9a2f086d29 /bin/kolab_smtp_access_policy.py
parent9979cacd96ee89cdff64705ffab2a681250d32be (diff)
downloadpykolab-8517e1d8ca37d1d4f9fb649a91e222de0d83f59b.tar.gz
Fix session timeouts (#2661, #3567)
Diffstat (limited to 'bin/kolab_smtp_access_policy.py')
-rwxr-xr-xbin/kolab_smtp_access_policy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/kolab_smtp_access_policy.py b/bin/kolab_smtp_access_policy.py
index 6e904eb..4b3d89b 100755
--- a/bin/kolab_smtp_access_policy.py
+++ b/bin/kolab_smtp_access_policy.py
@@ -1158,6 +1158,7 @@ def cache_cleanup():
).filter(
PolicyResult.created < ((int)(time.time()) - cache_expire)
).delete()
+ session.commit()
def cache_init():
global cache, cache_expire, session