ITS#3153 only cache queries with at least one entry

This commit is contained in:
Howard Chu 2004-05-19 23:37:14 +00:00
parent 464866d57b
commit 73fa8b7dd9

View File

@ -1224,7 +1224,7 @@ proxy_cache_response(
si->tail = NULL;
}
}
} else if ( rs->sr_type == REP_RESULT && !si->over ) {
} else if ( rs->sr_type == REP_RESULT && si->count ) {
if ( cache_entries( op, rs, &uuid ) == 0) {
qm->addfunc(qm, &si->query, si->template_id, &uuid);
/* If the consistency checker suspended itself,