commit | 1d6c639310f9f8f267e71f950b4da7d1169b8f50 | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Fri Dec 14 11:19:36 2012 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Fri Dec 14 11:19:36 2012 +0000 |
tree | 7d30287f0207aad000790a05186c1f1098425771 | |
parent | 429798fd088573c03fb3f18619472dcb22de45ed [diff] |
Fix broken cache.
diff --git a/src/cache.c b/src/cache.c index b058582..f9ba335 100644 --- a/src/cache.c +++ b/src/cache.c
@@ -394,7 +394,7 @@ int freed_all = flags & F_REVERSE; int free_avail = 0; - if(daemon->max_cache_ttl < ttl) + if (daemon->max_cache_ttl != 0 && daemon->max_cache_ttl < ttl) ttl = daemon->max_cache_ttl; /* Don't log keys */