comparison src/http/ngx_http_script.c @ 1714:6b81bbc36eaf stable-0.5

r1566 merge: fix English grammar
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Dec 2007 16:57:36 +0000
parents fbabcf02f65e
children d2a12e9a34e8
comparison
equal deleted inserted replaced
1713:389aeafc3b84 1714:6b81bbc36eaf
312 ngx_http_core_main_conf_t *cmcf; 312 ngx_http_core_main_conf_t *cmcf;
313 313
314 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); 314 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
315 315
316 for (i = 0; i < cmcf->variables.nelts; i++) { 316 for (i = 0; i < cmcf->variables.nelts; i++) {
317 if (r->variables[i].no_cachable) { 317 if (r->variables[i].no_cacheable) {
318 r->variables[i].valid = 0; 318 r->variables[i].valid = 0;
319 r->variables[i].not_found = 0; 319 r->variables[i].not_found = 0;
320 } 320 }
321 } 321 }
322 322
349 return e.pos; 349 return e.pos;
350 } 350 }
351 351
352 352
353 void 353 void
354 ngx_http_script_flush_no_cachable_variables(ngx_http_request_t *r, 354 ngx_http_script_flush_no_cacheable_variables(ngx_http_request_t *r,
355 ngx_array_t *indices) 355 ngx_array_t *indices)
356 { 356 {
357 ngx_uint_t n, *index; 357 ngx_uint_t n, *index;
358 358
359 if (indices) { 359 if (indices) {
360 index = indices->elts; 360 index = indices->elts;
361 for (n = 0; n < indices->nelts; n++) { 361 for (n = 0; n < indices->nelts; n++) {
362 if (r->variables[index[n]].no_cachable) { 362 if (r->variables[index[n]].no_cacheable) {
363 r->variables[index[n]].valid = 0; 363 r->variables[index[n]].valid = 0;
364 r->variables[index[n]].not_found = 0; 364 r->variables[index[n]].not_found = 0;
365 } 365 }
366 } 366 }
367 } 367 }
1148 1148
1149 e->sp--; 1149 e->sp--;
1150 1150
1151 r->variables[code->index].len = e->sp->len; 1151 r->variables[code->index].len = e->sp->len;
1152 r->variables[code->index].valid = 1; 1152 r->variables[code->index].valid = 1;
1153 r->variables[code->index].no_cachable = 0; 1153 r->variables[code->index].no_cacheable = 0;
1154 r->variables[code->index].not_found = 0; 1154 r->variables[code->index].not_found = 0;
1155 r->variables[code->index].data = e->sp->data; 1155 r->variables[code->index].data = e->sp->data;
1156 } 1156 }
1157 1157
1158 1158