From 491a2d89b3314df9ed808cf15b57acf352b90747 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 17 Feb 2015 17:00:41 +0100 Subject: [PATCH] Increase memcached cache duration to 2 hours And completly disable dovecot's negative cache --- root/etc/e-smith/templates/etc/dovecot/dovecot.conf/014AuthCache | 4 ++-- root/etc/e-smith/templates/etc/sogo/sogo.conf/16memcached | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/014AuthCache b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/014AuthCache index 253e609..11e4281 100644 --- a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/014AuthCache +++ b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/014AuthCache @@ -1,3 +1,3 @@ auth_cache_size = { $dovecot{'AuthCacheSize'} || '5242880' } -auth_cache_ttl = 1800 -auth_cache_negative_ttl = 1 +auth_cache_ttl = 7200 +auth_cache_negative_ttl = 0 diff --git a/root/etc/e-smith/templates/etc/sogo/sogo.conf/16memcached b/root/etc/e-smith/templates/etc/sogo/sogo.conf/16memcached index 0ebbb21..11c2038 100644 --- a/root/etc/e-smith/templates/etc/sogo/sogo.conf/16memcached +++ b/root/etc/e-smith/templates/etc/sogo/sogo.conf/16memcached @@ -1,2 +1,2 @@ SOGoMemcachedHost = "/var/run/sogo/memcached.sock"; - SOGoCacheCleanupInterval = 1800; + SOGoCacheCleanupInterval = 7200;