]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10270 slapo-pcache: ttr was not being applied to negatively cached entries
authorAndrew Elble <aweits@rit.edu>
Fri, 11 Oct 2024 12:37:13 +0000 (08:37 -0400)
committerHoward Chu <hyc@openldap.org>
Thu, 27 Mar 2025 14:59:15 +0000 (14:59 +0000)
servers/slapd/overlays/pcache.c

index 1d6e4ba4edcf2242f088b67db9001d39d5e8059d..40c1f9673776a6e34b656bb014ee840a4b119420 100644 (file)
@@ -1580,6 +1580,8 @@ add_query(
 
        case PC_NEGATIVE:
                ttl = templ->negttl;
+               if ( templ->ttr )
+                       ttr = now + templ->ttr;
                break;
 
        case PC_SIZELIMIT: