Klaus Demo nginx / 054c505
update r2664 Igor Sysoev 13 years ago
1 changed file(s) with 12 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
28902890 switch (n) {
28912891 case 0:
28922892 r->upstream->cacheable = 0;
2893 break;
2894
28952893 case NGX_ERROR:
2896 break;
2894 return NGX_OK;
28972895
28982896 default:
28992897 r->cache->valid_sec = ngx_time() + n;
2900 break;
2901 }
2902
2903 } else {
2904 p++;
2905 len--;
2906
2907 n = ngx_atoi(p, len);
2908
2909 if (n != NGX_ERROR) {
2910 r->cache->valid_sec = n;
2911 }
2898 return NGX_OK;
2899 }
2900 }
2901
2902 p++;
2903 len--;
2904
2905 n = ngx_atoi(p, len);
2906
2907 if (n != NGX_ERROR) {
2908 r->cache->valid_sec = n;
29122909 }
29132910
29142911 return NGX_OK;