=== modified file 'src/external_acl.cc' --- src/external_acl.cc 2010-12-14 14:01:14 +0000 +++ src/external_acl.cc 2011-01-24 23:19:34 +0000 @@ -1113,6 +1113,11 @@ static external_acl_entry * external_acl_cache_add(external_acl * def, const char *key, ExternalACLEntryData const & data) { + // do not bother caching this result if TTL is going to expire it immediately + if ((def->ttl <= 0 && data.result == 1) || (def->negative_ttl <= 0 && data.result != 1)) { + return NULL; + } + ExternalACLEntry *entry = static_cast(hash_lookup(def->cache, key)); debugs(82, 2, "external_acl_cache_add: Adding '" << key << "' = " << data.result);