Mercurial > hg > nginx
comparison src/http/ngx_http_script.c @ 1565:4c43e25d11ea
fix English grammar
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 14 Oct 2007 18:56:15 +0000 |
parents | 57f3c940ae30 |
children | bef67c6abbe7 |
comparison
equal
deleted
inserted
replaced
1564:6725c3f56216 | 1565:4c43e25d11ea |
---|---|
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 } |
1150 | 1150 |
1151 e->sp--; | 1151 e->sp--; |
1152 | 1152 |
1153 r->variables[code->index].len = e->sp->len; | 1153 r->variables[code->index].len = e->sp->len; |
1154 r->variables[code->index].valid = 1; | 1154 r->variables[code->index].valid = 1; |
1155 r->variables[code->index].no_cachable = 0; | 1155 r->variables[code->index].no_cacheable = 0; |
1156 r->variables[code->index].not_found = 0; | 1156 r->variables[code->index].not_found = 0; |
1157 r->variables[code->index].data = e->sp->data; | 1157 r->variables[code->index].data = e->sp->data; |
1158 } | 1158 } |
1159 | 1159 |
1160 | 1160 |