mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix negative caching, only do it on Success
This commit is contained in:
parent
fdfd5e7ec0
commit
bedac8bd60
@ -1073,7 +1073,7 @@ pcache_response(
|
||||
} else if ( rs->sr_type == REP_RESULT ) {
|
||||
QueryTemplate* templ = (qm->templates)+si->template_id;
|
||||
if (( si->count && cache_entries( op, rs, &uuid ) == 0 ) ||
|
||||
( !si->count && templ->negttl )) {
|
||||
( !si->count && templ->negttl && rs->sr_err == LDAP_SUCCESS )) {
|
||||
qm->addfunc(qm, &si->query, si->template_id,
|
||||
si->count ? &uuid : NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user