Klaus Demo nginx / 1cd46b8
count cache key node usage for cached error statuses Igor Sysoev 9 years ago
1 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
518518 if (fcn) {
519519 ngx_queue_remove(&fcn->queue);
520520
521 fcn->uses++;
522 fcn->count++;
523
521524 if (fcn->error) {
522525
523526 if (fcn->valid_sec < ngx_time()) {
528531
529532 goto done;
530533 }
531
532 fcn->uses++;
533 fcn->count++;
534534
535535 if (fcn->exists) {
536536
580580
581581 ngx_rbtree_insert(&cache->sh->rbtree, &fcn->node);
582582
583 renew:
584
585 rc = NGX_DECLINED;
586
587583 fcn->uses = 1;
588584 fcn->count = 1;
585
586 renew:
587
588 rc = NGX_DECLINED;
589
589590 fcn->valid_msec = 0;
590591 fcn->error = 0;
591592 fcn->exists = 0;