miss状态才进行缓存更新。

This commit is contained in:
zhengchao
2018-11-20 16:43:17 +08:00
parent 811e8afcd6
commit 36762d60ca

View File

@@ -1344,8 +1344,7 @@ void pangu_on_http_data(const struct tfe_stream * stream, const struct tfe_http_
}
}
if(tfe_http_in_response(events)
&& (ctx->pending_result==PENDING_RESULT_MISS||ctx->pending_result==PENDING_RESULT_ALLOWED))
if(tfe_http_in_response(events) && ctx->pending_result==PENDING_RESULT_MISS)
{
cache_update(session, events, body_frag, frag_size, thread_id, ctx);
}