cache              26 core/ngx_open_file_cache.c static void ngx_open_file_add_event(ngx_open_file_cache_t *cache,
cache              29 core/ngx_open_file_cache.c static void ngx_close_cached_file(ngx_open_file_cache_t *cache,
cache              32 core/ngx_open_file_cache.c static void ngx_expire_old_cached_files(ngx_open_file_cache_t *cache,
cache              37 core/ngx_open_file_cache.c     ngx_open_file_lookup(ngx_open_file_cache_t *cache, ngx_str_t *name,
cache              46 core/ngx_open_file_cache.c     ngx_open_file_cache_t  *cache;
cache              48 core/ngx_open_file_cache.c     cache = ngx_palloc(pool, sizeof(ngx_open_file_cache_t));
cache              49 core/ngx_open_file_cache.c     if (cache == NULL) {
cache              53 core/ngx_open_file_cache.c     ngx_rbtree_init(&cache->rbtree, &cache->sentinel,
cache              56 core/ngx_open_file_cache.c     ngx_queue_init(&cache->expire_queue);
cache              58 core/ngx_open_file_cache.c     cache->current = 0;
cache              59 core/ngx_open_file_cache.c     cache->max = max;
cache              60 core/ngx_open_file_cache.c     cache->inactive = inactive;
cache              68 core/ngx_open_file_cache.c     cln->data = cache;
cache              70 core/ngx_open_file_cache.c     return cache;
cache              77 core/ngx_open_file_cache.c     ngx_open_file_cache_t  *cache = data;
cache              87 core/ngx_open_file_cache.c         if (ngx_queue_empty(&cache->expire_queue)) {
cache              91 core/ngx_open_file_cache.c         q = ngx_queue_last(&cache->expire_queue);
cache              97 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
cache              99 core/ngx_open_file_cache.c         cache->current--;
cache             107 core/ngx_open_file_cache.c             ngx_close_cached_file(cache, file, 0, ngx_cycle->log);
cache             115 core/ngx_open_file_cache.c     if (cache->current) {
cache             118 core/ngx_open_file_cache.c                       cache->current);
cache             121 core/ngx_open_file_cache.c     if (cache->rbtree.root != cache->rbtree.sentinel) {
cache             130 core/ngx_open_file_cache.c ngx_open_cached_file(ngx_open_file_cache_t *cache, ngx_str_t *name,
cache             145 core/ngx_open_file_cache.c     if (cache == NULL) {
cache             194 core/ngx_open_file_cache.c     file = ngx_open_file_lookup(cache, name, hash);
cache             235 core/ngx_open_file_cache.c                     ngx_open_file_add_event(cache, file, of, pool->log);
cache             319 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
cache             321 core/ngx_open_file_cache.c         cache->current--;
cache             338 core/ngx_open_file_cache.c     if (cache->current >= cache->max) {
cache             339 core/ngx_open_file_cache.c         ngx_expire_old_cached_files(cache, 0, pool->log);
cache             360 core/ngx_open_file_cache.c     ngx_rbtree_insert(&cache->rbtree, &file->node);
cache             362 core/ngx_open_file_cache.c     cache->current++;
cache             371 core/ngx_open_file_cache.c     ngx_open_file_add_event(cache, file, of, pool->log);
cache             404 core/ngx_open_file_cache.c     ngx_queue_insert_head(&cache->expire_queue, &file->queue);
cache             416 core/ngx_open_file_cache.c             ofcln->cache = cache;
cache             430 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
cache             432 core/ngx_open_file_cache.c         cache->current--;
cache             582 core/ngx_open_file_cache.c ngx_open_file_add_event(ngx_open_file_cache_t *cache,
cache             612 core/ngx_open_file_cache.c     fev->cache = cache;
cache             652 core/ngx_open_file_cache.c     ngx_close_cached_file(c->cache, c->file, c->min_uses, c->log);
cache             655 core/ngx_open_file_cache.c     ngx_expire_old_cached_files(c->cache, 1, c->log);
cache             660 core/ngx_open_file_cache.c ngx_close_cached_file(ngx_open_file_cache_t *cache,
cache             673 core/ngx_open_file_cache.c         ngx_queue_insert_head(&cache->expire_queue, &file->queue);
cache             723 core/ngx_open_file_cache.c ngx_expire_old_cached_files(ngx_open_file_cache_t *cache, ngx_uint_t n,
cache             740 core/ngx_open_file_cache.c         if (ngx_queue_empty(&cache->expire_queue)) {
cache             744 core/ngx_open_file_cache.c         q = ngx_queue_last(&cache->expire_queue);
cache             748 core/ngx_open_file_cache.c         if (n++ != 0 && now - file->accessed <= cache->inactive) {
cache             754 core/ngx_open_file_cache.c         ngx_rbtree_delete(&cache->rbtree, &file->node);
cache             756 core/ngx_open_file_cache.c         cache->current--;
cache             763 core/ngx_open_file_cache.c             ngx_close_cached_file(cache, file, 0, log);
cache             815 core/ngx_open_file_cache.c ngx_open_file_lookup(ngx_open_file_cache_t *cache, ngx_str_t *name,
cache             822 core/ngx_open_file_cache.c     node = cache->rbtree.root;
cache             823 core/ngx_open_file_cache.c     sentinel = cache->rbtree.sentinel;
cache             870 core/ngx_open_file_cache.c     ngx_rbtree_delete(&fev->cache->rbtree, &file->node);
cache             872 core/ngx_open_file_cache.c     fev->cache->current--;
cache             880 core/ngx_open_file_cache.c     ngx_close_cached_file(fev->cache, file, 0, ev->log);
cache              91 core/ngx_open_file_cache.h     ngx_open_file_cache_t   *cache;
cache             107 core/ngx_open_file_cache.h     ngx_open_file_cache_t   *cache;
cache             113 core/ngx_open_file_cache.h ngx_int_t ngx_open_cached_file(ngx_open_file_cache_t *cache, ngx_str_t *name,
cache             414 core/ngx_palloc.c     if (ngx_cycle->cache == NULL) {
cache             418 core/ngx_palloc.c     slot = &ngx_cycle->cache[(size + ngx_pagesize - 1) / ngx_pagesize];
cache              36 event/ngx_event_openssl.c static void ngx_ssl_expire_sessions(ngx_ssl_session_cache_t *cache,
cache            1503 event/ngx_event_openssl.c     ngx_ssl_session_cache_t  *cache;
cache            1517 event/ngx_event_openssl.c     cache = ngx_slab_alloc(shpool, sizeof(ngx_ssl_session_cache_t));
cache            1518 event/ngx_event_openssl.c     if (cache == NULL) {
cache            1522 event/ngx_event_openssl.c     shpool->data = cache;
cache            1523 event/ngx_event_openssl.c     shm_zone->data = cache;
cache            1525 event/ngx_event_openssl.c     ngx_rbtree_init(&cache->session_rbtree, &cache->sentinel,
cache            1528 event/ngx_event_openssl.c     ngx_queue_init(&cache->expire_queue);
cache            1572 event/ngx_event_openssl.c     ngx_ssl_session_cache_t  *cache;
cache            1591 event/ngx_event_openssl.c     cache = shm_zone->data;
cache            1597 event/ngx_event_openssl.c     ngx_ssl_expire_sessions(cache, shpool, 1);
cache            1605 event/ngx_event_openssl.c         ngx_ssl_expire_sessions(cache, shpool, 0);
cache            1651 event/ngx_event_openssl.c     ngx_queue_insert_head(&cache->expire_queue, &sess_id->queue);
cache            1653 event/ngx_event_openssl.c     ngx_rbtree_insert(&cache->session_rbtree, &sess_id->node);
cache            1694 event/ngx_event_openssl.c     ngx_ssl_session_cache_t  *cache;
cache            1708 event/ngx_event_openssl.c     cache = shm_zone->data;
cache            1716 event/ngx_event_openssl.c     node = cache->session_rbtree.root;
cache            1717 event/ngx_event_openssl.c     sentinel = cache->session_rbtree.sentinel;
cache            1753 event/ngx_event_openssl.c                 ngx_rbtree_delete(&cache->session_rbtree, node);
cache            1801 event/ngx_event_openssl.c     ngx_ssl_session_cache_t  *cache;
cache            1809 event/ngx_event_openssl.c     cache = shm_zone->data;
cache            1823 event/ngx_event_openssl.c     node = cache->session_rbtree.root;
cache            1824 event/ngx_event_openssl.c     sentinel = cache->session_rbtree.sentinel;
cache            1849 event/ngx_event_openssl.c                 ngx_rbtree_delete(&cache->session_rbtree, node);
cache            1874 event/ngx_event_openssl.c ngx_ssl_expire_sessions(ngx_ssl_session_cache_t *cache,
cache            1885 event/ngx_event_openssl.c         if (ngx_queue_empty(&cache->expire_queue)) {
cache            1889 event/ngx_event_openssl.c         q = ngx_queue_last(&cache->expire_queue);
cache            1902 event/ngx_event_openssl.c         ngx_rbtree_delete(&cache->session_rbtree, &sess_id->node);
cache             670 http/modules/ngx_http_fastcgi_module.c     key = ngx_array_push(&r->cache->keys);
cache            1272 http/modules/ngx_http_fastcgi_module.c                         if (r->cache) {
cache            1274 http/modules/ngx_http_fastcgi_module.c                                                      + r->cache->header_start;
cache            1300 http/modules/ngx_http_fastcgi_module.c         if (f->large_stderr && r->cache) {
cache            1305 http/modules/ngx_http_fastcgi_module.c             start = u->buffer.start + r->cache->header_start;
cache            1329 http/modules/ngx_http_fastcgi_module.c                 r->cache->header_start += u->buffer.pos - start
cache            1989 http/modules/ngx_http_fastcgi_module.c     conf->upstream.cache = NGX_CONF_UNSET_PTR;
cache            2182 http/modules/ngx_http_fastcgi_module.c     ngx_conf_merge_ptr_value(conf->upstream.cache,
cache            2183 http/modules/ngx_http_fastcgi_module.c                               prev->upstream.cache, NULL);
cache            2185 http/modules/ngx_http_fastcgi_module.c     if (conf->upstream.cache && conf->upstream.cache->data == NULL) {
cache            2188 http/modules/ngx_http_fastcgi_module.c         shm_zone = conf->upstream.cache;
cache            2295 http/modules/ngx_http_fastcgi_module.c             if ((conf->upstream.cache == NULL)
cache            2296 http/modules/ngx_http_fastcgi_module.c                 == (prev->upstream.cache == NULL))
cache            2337 http/modules/ngx_http_fastcgi_module.c     if (conf->upstream.cache) {
cache            2735 http/modules/ngx_http_fastcgi_module.c     if (flcf->upstream.cache != NGX_CONF_UNSET_PTR
cache            2736 http/modules/ngx_http_fastcgi_module.c         && flcf->upstream.cache != NULL)
cache            2780 http/modules/ngx_http_fastcgi_module.c     if (flcf->upstream.cache != NGX_CONF_UNSET_PTR) {
cache            2785 http/modules/ngx_http_fastcgi_module.c         flcf->upstream.cache = NULL;
cache            2793 http/modules/ngx_http_fastcgi_module.c     flcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
cache            2795 http/modules/ngx_http_fastcgi_module.c     if (flcf->upstream.cache == NULL) {
cache             750 http/modules/ngx_http_proxy_module.c     key = ngx_array_push(&r->cache->keys);
cache             766 http/modules/ngx_http_proxy_module.c     key = ngx_array_push(&r->cache->keys);
cache            1194 http/modules/ngx_http_proxy_module.c         if (r->cache) {
cache            1686 http/modules/ngx_http_proxy_module.c     conf->upstream.cache = NGX_CONF_UNSET_PTR;
cache            1881 http/modules/ngx_http_proxy_module.c     ngx_conf_merge_ptr_value(conf->upstream.cache,
cache            1882 http/modules/ngx_http_proxy_module.c                               prev->upstream.cache, NULL);
cache            1884 http/modules/ngx_http_proxy_module.c     if (conf->upstream.cache && conf->upstream.cache->data == NULL) {
cache            1887 http/modules/ngx_http_proxy_module.c         shm_zone = conf->upstream.cache;
cache            2118 http/modules/ngx_http_proxy_module.c         && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL))
cache            2155 http/modules/ngx_http_proxy_module.c     h = conf->upstream.cache ? ngx_http_proxy_cache_headers:
cache            2615 http/modules/ngx_http_proxy_module.c     if (plcf->upstream.cache != NGX_CONF_UNSET_PTR
cache            2616 http/modules/ngx_http_proxy_module.c         && plcf->upstream.cache != NULL)
cache            2660 http/modules/ngx_http_proxy_module.c     if (plcf->upstream.cache != NGX_CONF_UNSET_PTR) {
cache            2665 http/modules/ngx_http_proxy_module.c         plcf->upstream.cache = NULL;
cache            2673 http/modules/ngx_http_proxy_module.c     plcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
cache            2675 http/modules/ngx_http_proxy_module.c     if (plcf->upstream.cache == NULL) {
cache             722 http/modules/ngx_http_range_filter_module.c     body_start = r->cached ? r->cache->body_start : 0;
cache             492 http/modules/ngx_http_scgi_module.c     key = ngx_array_push(&r->cache->keys);
cache            1018 http/modules/ngx_http_scgi_module.c     conf->upstream.cache = NGX_CONF_UNSET_PTR;
cache            1207 http/modules/ngx_http_scgi_module.c     ngx_conf_merge_ptr_value(conf->upstream.cache,
cache            1208 http/modules/ngx_http_scgi_module.c                               prev->upstream.cache, NULL);
cache            1210 http/modules/ngx_http_scgi_module.c     if (conf->upstream.cache && conf->upstream.cache->data == NULL) {
cache            1213 http/modules/ngx_http_scgi_module.c         shm_zone = conf->upstream.cache;
cache            1302 http/modules/ngx_http_scgi_module.c             if ((conf->upstream.cache == NULL)
cache            1303 http/modules/ngx_http_scgi_module.c                 == (prev->upstream.cache == NULL))
cache            1344 http/modules/ngx_http_scgi_module.c     if (conf->upstream.cache) {
cache            1561 http/modules/ngx_http_scgi_module.c     if (scf->upstream.cache != NGX_CONF_UNSET_PTR
cache            1562 http/modules/ngx_http_scgi_module.c         && scf->upstream.cache != NULL)
cache            1606 http/modules/ngx_http_scgi_module.c     if (scf->upstream.cache != NGX_CONF_UNSET_PTR) {
cache            1611 http/modules/ngx_http_scgi_module.c         scf->upstream.cache = NULL;
cache            1619 http/modules/ngx_http_scgi_module.c     scf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
cache            1621 http/modules/ngx_http_scgi_module.c     if (scf->upstream.cache == NULL) {
cache             525 http/modules/ngx_http_uwsgi_module.c     key = ngx_array_push(&r->cache->keys);
cache            1071 http/modules/ngx_http_uwsgi_module.c     conf->upstream.cache = NGX_CONF_UNSET_PTR;
cache            1260 http/modules/ngx_http_uwsgi_module.c     ngx_conf_merge_ptr_value(conf->upstream.cache,
cache            1261 http/modules/ngx_http_uwsgi_module.c                               prev->upstream.cache, NULL);
cache            1263 http/modules/ngx_http_uwsgi_module.c     if (conf->upstream.cache && conf->upstream.cache->data == NULL) {
cache            1266 http/modules/ngx_http_uwsgi_module.c         shm_zone = conf->upstream.cache;
cache            1360 http/modules/ngx_http_uwsgi_module.c             if ((conf->upstream.cache == NULL)
cache            1361 http/modules/ngx_http_uwsgi_module.c                 == (prev->upstream.cache == NULL))
cache            1402 http/modules/ngx_http_uwsgi_module.c     if (conf->upstream.cache) {
cache            1613 http/modules/ngx_http_uwsgi_module.c     if (uwcf->upstream.cache != NGX_CONF_UNSET_PTR
cache            1614 http/modules/ngx_http_uwsgi_module.c         && uwcf->upstream.cache != NULL)
cache            1658 http/modules/ngx_http_uwsgi_module.c     if (uwcf->upstream.cache != NGX_CONF_UNSET_PTR) {
cache            1663 http/modules/ngx_http_uwsgi_module.c         uwcf->upstream.cache = NULL;
cache            1671 http/modules/ngx_http_uwsgi_module.c     uwcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
cache            1673 http/modules/ngx_http_uwsgi_module.c     if (uwcf->upstream.cache == NULL) {
cache            2337 http/ngx_http_core_module.c     r->cache = NULL;
cache              20 http/ngx_http_file_cache.c static ngx_int_t ngx_http_file_cache_exists(ngx_http_file_cache_t *cache,
cache              25 http/ngx_http_file_cache.c     ngx_http_file_cache_lookup(ngx_http_file_cache_t *cache, u_char *key);
cache              29 http/ngx_http_file_cache.c static time_t ngx_http_file_cache_forced_expire(ngx_http_file_cache_t *cache);
cache              30 http/ngx_http_file_cache.c static time_t ngx_http_file_cache_expire(ngx_http_file_cache_t *cache);
cache              31 http/ngx_http_file_cache.c static void ngx_http_file_cache_delete(ngx_http_file_cache_t *cache,
cache              34 http/ngx_http_file_cache.c     ngx_http_file_cache_manager_sleep(ngx_http_file_cache_t *cache);
cache              41 http/ngx_http_file_cache.c static ngx_int_t ngx_http_file_cache_add(ngx_http_file_cache_t *cache,
cache              67 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache;
cache              69 http/ngx_http_file_cache.c     cache = shm_zone->data;
cache              72 http/ngx_http_file_cache.c         if (ngx_strcmp(cache->path->name.data, ocache->path->name.data) != 0) {
cache              76 http/ngx_http_file_cache.c                           &shm_zone->shm.name, &cache->path->name,
cache              83 http/ngx_http_file_cache.c             if (cache->path->level[n] != ocache->path->level[n]) {
cache              91 http/ngx_http_file_cache.c         cache->sh = ocache->sh;
cache              93 http/ngx_http_file_cache.c         cache->shpool = ocache->shpool;
cache              94 http/ngx_http_file_cache.c         cache->bsize = ocache->bsize;
cache              96 http/ngx_http_file_cache.c         cache->max_size /= cache->bsize;
cache              98 http/ngx_http_file_cache.c         if (!cache->sh->cold || cache->sh->loading) {
cache              99 http/ngx_http_file_cache.c             cache->path->loader = NULL;
cache             105 http/ngx_http_file_cache.c     cache->shpool = (ngx_slab_pool_t *) shm_zone->shm.addr;
cache             108 http/ngx_http_file_cache.c         cache->sh = cache->shpool->data;
cache             109 http/ngx_http_file_cache.c         cache->bsize = ngx_fs_bsize(cache->path->name.data);
cache             114 http/ngx_http_file_cache.c     cache->sh = ngx_slab_alloc(cache->shpool, sizeof(ngx_http_file_cache_sh_t));
cache             115 http/ngx_http_file_cache.c     if (cache->sh == NULL) {
cache             119 http/ngx_http_file_cache.c     cache->shpool->data = cache->sh;
cache             121 http/ngx_http_file_cache.c     ngx_rbtree_init(&cache->sh->rbtree, &cache->sh->sentinel,
cache             124 http/ngx_http_file_cache.c     ngx_queue_init(&cache->sh->queue);
cache             126 http/ngx_http_file_cache.c     cache->sh->cold = 1;
cache             127 http/ngx_http_file_cache.c     cache->sh->loading = 0;
cache             128 http/ngx_http_file_cache.c     cache->sh->size = 0;
cache             130 http/ngx_http_file_cache.c     cache->bsize = ngx_fs_bsize(cache->path->name.data);
cache             132 http/ngx_http_file_cache.c     cache->max_size /= cache->bsize;
cache             136 http/ngx_http_file_cache.c     cache->shpool->log_ctx = ngx_slab_alloc(cache->shpool, len);
cache             137 http/ngx_http_file_cache.c     if (cache->shpool->log_ctx == NULL) {
cache             141 http/ngx_http_file_cache.c     ngx_sprintf(cache->shpool->log_ctx, " in cache keys zone \"%V\"%Z",
cache             162 http/ngx_http_file_cache.c     r->cache = c;
cache             175 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache;
cache             179 http/ngx_http_file_cache.c     c = r->cache;
cache             180 http/ngx_http_file_cache.c     cache = c->file_cache;
cache             187 http/ngx_http_file_cache.c     if (ngx_http_file_cache_exists(cache, c) == NGX_ERROR) {
cache             194 http/ngx_http_file_cache.c     if (ngx_http_file_cache_name(r, cache->path) != NGX_OK) {
cache             211 http/ngx_http_file_cache.c     c = r->cache;
cache             245 http/ngx_http_file_cache.c     ngx_http_file_cache_t     *cache;
cache             248 http/ngx_http_file_cache.c     c = r->cache;
cache             254 http/ngx_http_file_cache.c     cache = c->file_cache;
cache             261 http/ngx_http_file_cache.c     rc = ngx_http_file_cache_exists(cache, c);
cache             277 http/ngx_http_file_cache.c     cold = cache->sh->cold;
cache             307 http/ngx_http_file_cache.c     if (ngx_http_file_cache_name(r, cache->path) != NGX_OK) {
cache             368 http/ngx_http_file_cache.c     ngx_http_file_cache_t         *cache;
cache             402 http/ngx_http_file_cache.c     cache = c->file_cache;
cache             404 http/ngx_http_file_cache.c     if (cache->sh->cold) {
cache             406 http/ngx_http_file_cache.c         ngx_shmtx_lock(&cache->shpool->mutex);
cache             414 http/ngx_http_file_cache.c             cache->sh->size += (c->length + cache->bsize - 1) / cache->bsize;
cache             417 http/ngx_http_file_cache.c         ngx_shmtx_unlock(&cache->shpool->mutex);
cache             424 http/ngx_http_file_cache.c         ngx_shmtx_lock(&cache->shpool->mutex);
cache             435 http/ngx_http_file_cache.c         ngx_shmtx_unlock(&cache->shpool->mutex);
cache             508 http/ngx_http_file_cache.c ngx_http_file_cache_exists(ngx_http_file_cache_t *cache, ngx_http_cache_t *c)
cache             513 http/ngx_http_file_cache.c     ngx_shmtx_lock(&cache->shpool->mutex);
cache             515 http/ngx_http_file_cache.c     fcn = ngx_http_file_cache_lookup(cache, c->key);
cache             558 http/ngx_http_file_cache.c     fcn = ngx_slab_alloc_locked(cache->shpool,
cache             561 http/ngx_http_file_cache.c         ngx_shmtx_unlock(&cache->shpool->mutex);
cache             563 http/ngx_http_file_cache.c         (void) ngx_http_file_cache_forced_expire(cache);
cache             565 http/ngx_http_file_cache.c         ngx_shmtx_lock(&cache->shpool->mutex);
cache             567 http/ngx_http_file_cache.c         fcn = ngx_slab_alloc_locked(cache->shpool,
cache             580 http/ngx_http_file_cache.c     ngx_rbtree_insert(&cache->sh->rbtree, &fcn->node);
cache             601 http/ngx_http_file_cache.c     fcn->expire = ngx_time() + cache->inactive;
cache             603 http/ngx_http_file_cache.c     ngx_queue_insert_head(&cache->sh->queue, &fcn->queue);
cache             611 http/ngx_http_file_cache.c     ngx_shmtx_unlock(&cache->shpool->mutex);
cache             623 http/ngx_http_file_cache.c     c = r->cache;
cache             649 http/ngx_http_file_cache.c ngx_http_file_cache_lookup(ngx_http_file_cache_t *cache, u_char *key)
cache             658 http/ngx_http_file_cache.c     node = cache->sh->rbtree.root;
cache             659 http/ngx_http_file_cache.c     sentinel = cache->sh->rbtree.sentinel;
cache             754 http/ngx_http_file_cache.c     c = r->cache;
cache             786 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache;
cache             788 http/ngx_http_file_cache.c     c = r->cache;
cache             800 http/ngx_http_file_cache.c     cache = c->file_cache;
cache             832 http/ngx_http_file_cache.c     size = (length + cache->bsize - 1) / cache->bsize;
cache             834 http/ngx_http_file_cache.c     ngx_shmtx_lock(&cache->shpool->mutex);
cache             840 http/ngx_http_file_cache.c     size = size - (c->node->length + cache->bsize - 1) / cache->bsize;
cache             844 http/ngx_http_file_cache.c     cache->sh->size += size;
cache             852 http/ngx_http_file_cache.c     ngx_shmtx_unlock(&cache->shpool->mutex);
cache             864 http/ngx_http_file_cache.c     c = r->cache;
cache             910 http/ngx_http_file_cache.c     ngx_http_file_cache_t       *cache;
cache             917 http/ngx_http_file_cache.c     cache = c->file_cache;
cache             922 http/ngx_http_file_cache.c     ngx_shmtx_lock(&cache->shpool->mutex);
cache             941 http/ngx_http_file_cache.c         ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
cache             942 http/ngx_http_file_cache.c         ngx_slab_free_locked(cache->shpool, fcn);
cache             946 http/ngx_http_file_cache.c     ngx_shmtx_unlock(&cache->shpool->mutex);
cache             989 http/ngx_http_file_cache.c ngx_http_file_cache_forced_expire(ngx_http_file_cache_t *cache)
cache            1002 http/ngx_http_file_cache.c     path = cache->path;
cache            1015 http/ngx_http_file_cache.c     ngx_shmtx_lock(&cache->shpool->mutex);
cache            1017 http/ngx_http_file_cache.c     for (q = ngx_queue_last(&cache->sh->queue);
cache            1018 http/ngx_http_file_cache.c          q != ngx_queue_sentinel(&cache->sh->queue);
cache            1029 http/ngx_http_file_cache.c             ngx_http_file_cache_delete(cache, q, name);
cache            1043 http/ngx_http_file_cache.c     ngx_shmtx_unlock(&cache->shpool->mutex);
cache            1052 http/ngx_http_file_cache.c ngx_http_file_cache_expire(ngx_http_file_cache_t *cache)
cache            1065 http/ngx_http_file_cache.c     path = cache->path;
cache            1077 http/ngx_http_file_cache.c     ngx_shmtx_lock(&cache->shpool->mutex);
cache            1081 http/ngx_http_file_cache.c         if (ngx_queue_empty(&cache->sh->queue)) {
cache            1086 http/ngx_http_file_cache.c         q = ngx_queue_last(&cache->sh->queue);
cache            1103 http/ngx_http_file_cache.c             ngx_http_file_cache_delete(cache, q, name);
cache            1124 http/ngx_http_file_cache.c         ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
cache            1131 http/ngx_http_file_cache.c     ngx_shmtx_unlock(&cache->shpool->mutex);
cache            1140 http/ngx_http_file_cache.c ngx_http_file_cache_delete(ngx_http_file_cache_t *cache, ngx_queue_t *q,
cache            1151 http/ngx_http_file_cache.c         cache->sh->size -= (fcn->length + cache->bsize - 1) / cache->bsize;
cache            1153 http/ngx_http_file_cache.c         path = cache->path;
cache            1163 http/ngx_http_file_cache.c         ngx_shmtx_unlock(&cache->shpool->mutex);
cache            1176 http/ngx_http_file_cache.c         ngx_shmtx_lock(&cache->shpool->mutex);
cache            1183 http/ngx_http_file_cache.c         ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
cache            1184 http/ngx_http_file_cache.c         ngx_slab_free_locked(cache->shpool, fcn);
cache            1192 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache = data;
cache            1197 http/ngx_http_file_cache.c     next = ngx_http_file_cache_expire(cache);
cache            1199 http/ngx_http_file_cache.c     cache->last = ngx_current_msec;
cache            1200 http/ngx_http_file_cache.c     cache->files = 0;
cache            1203 http/ngx_http_file_cache.c         ngx_shmtx_lock(&cache->shpool->mutex);
cache            1205 http/ngx_http_file_cache.c         size = cache->sh->size;
cache            1207 http/ngx_http_file_cache.c         ngx_shmtx_unlock(&cache->shpool->mutex);
cache            1212 http/ngx_http_file_cache.c         if (size < cache->max_size) {
cache            1216 http/ngx_http_file_cache.c         wait = ngx_http_file_cache_forced_expire(cache);
cache            1222 http/ngx_http_file_cache.c         if (ngx_http_file_cache_manager_sleep(cache) != NGX_OK) {
cache            1232 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache = data;
cache            1236 http/ngx_http_file_cache.c     if (!cache->sh->cold || cache->sh->loading) {
cache            1240 http/ngx_http_file_cache.c     if (!ngx_atomic_cmp_set(&cache->sh->loading, 0, ngx_pid)) {
cache            1252 http/ngx_http_file_cache.c     tree.data = cache;
cache            1256 http/ngx_http_file_cache.c     cache->last = ngx_current_msec;
cache            1257 http/ngx_http_file_cache.c     cache->files = 0;
cache            1259 http/ngx_http_file_cache.c     if (ngx_walk_tree(&tree, &cache->path->name) == NGX_ABORT) {
cache            1260 http/ngx_http_file_cache.c         cache->sh->loading = 0;
cache            1264 http/ngx_http_file_cache.c     cache->sh->cold = 0;
cache            1265 http/ngx_http_file_cache.c     cache->sh->loading = 0;
cache            1269 http/ngx_http_file_cache.c                   &cache->path->name,
cache            1270 http/ngx_http_file_cache.c                   ((double) cache->sh->size * cache->bsize) / (1024 * 1024),
cache            1271 http/ngx_http_file_cache.c                   cache->bsize);
cache            1276 http/ngx_http_file_cache.c ngx_http_file_cache_manager_sleep(ngx_http_file_cache_t *cache)
cache            1280 http/ngx_http_file_cache.c     if (cache->files++ > 100) {
cache            1284 http/ngx_http_file_cache.c         elapsed = ngx_abs((ngx_msec_int_t) (ngx_current_msec - cache->last));
cache            1302 http/ngx_http_file_cache.c         cache->last = ngx_current_msec;
cache            1303 http/ngx_http_file_cache.c         cache->files = 0;
cache            1320 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache;
cache            1322 http/ngx_http_file_cache.c     cache = ctx->data;
cache            1328 http/ngx_http_file_cache.c     return ngx_http_file_cache_manager_sleep(cache);
cache            1341 http/ngx_http_file_cache.c     ngx_http_file_cache_t         *cache;
cache            1409 http/ngx_http_file_cache.c     cache = ctx->data;
cache            1411 http/ngx_http_file_cache.c     return ngx_http_file_cache_add(cache, &c);
cache            1416 http/ngx_http_file_cache.c ngx_http_file_cache_add(ngx_http_file_cache_t *cache, ngx_http_cache_t *c)
cache            1420 http/ngx_http_file_cache.c     ngx_shmtx_lock(&cache->shpool->mutex);
cache            1422 http/ngx_http_file_cache.c     fcn = ngx_http_file_cache_lookup(cache, c->key);
cache            1426 http/ngx_http_file_cache.c         fcn = ngx_slab_alloc_locked(cache->shpool,
cache            1429 http/ngx_http_file_cache.c             ngx_shmtx_unlock(&cache->shpool->mutex);
cache            1438 http/ngx_http_file_cache.c         ngx_rbtree_insert(&cache->sh->rbtree, &fcn->node);
cache            1452 http/ngx_http_file_cache.c         cache->sh->size += (c->length + cache->bsize - 1) / cache->bsize;
cache            1458 http/ngx_http_file_cache.c     fcn->expire = ngx_time() + cache->inactive;
cache            1460 http/ngx_http_file_cache.c     ngx_queue_insert_head(&cache->sh->queue, &fcn->queue);
cache            1462 http/ngx_http_file_cache.c     ngx_shmtx_unlock(&cache->shpool->mutex);
cache            1518 http/ngx_http_file_cache.c     ngx_http_file_cache_t  *cache;
cache            1520 http/ngx_http_file_cache.c     cache = ngx_pcalloc(cf->pool, sizeof(ngx_http_file_cache_t));
cache            1521 http/ngx_http_file_cache.c     if (cache == NULL) {
cache            1525 http/ngx_http_file_cache.c     cache->path = ngx_pcalloc(cf->pool, sizeof(ngx_path_t));
cache            1526 http/ngx_http_file_cache.c     if (cache->path == NULL) {
cache            1538 http/ngx_http_file_cache.c     cache->path->name = value[1];
cache            1540 http/ngx_http_file_cache.c     if (cache->path->name.data[cache->path->name.len - 1] == '/') {
cache            1541 http/ngx_http_file_cache.c         cache->path->name.len--;
cache            1544 http/ngx_http_file_cache.c     if (ngx_conf_full_name(cf->cycle, &cache->path->name, 0) != NGX_OK) {
cache            1559 http/ngx_http_file_cache.c                     cache->path->level[n] = *p++ - '0';
cache            1560 http/ngx_http_file_cache.c                     cache->path->len += cache->path->level[n] + 1;
cache            1576 http/ngx_http_file_cache.c             if (cache->path->len < 10 + 3) {
cache            1656 http/ngx_http_file_cache.c     cache->path->manager = ngx_http_file_cache_manager;
cache            1657 http/ngx_http_file_cache.c     cache->path->loader = ngx_http_file_cache_loader;
cache            1658 http/ngx_http_file_cache.c     cache->path->data = cache;
cache            1660 http/ngx_http_file_cache.c     if (ngx_add_path(cf, &cache->path) != NGX_OK) {
cache            1664 http/ngx_http_file_cache.c     cache->shm_zone = ngx_shared_memory_add(cf, &name, size, cmd->post);
cache            1665 http/ngx_http_file_cache.c     if (cache->shm_zone == NULL) {
cache            1669 http/ngx_http_file_cache.c     if (cache->shm_zone->data) {
cache            1676 http/ngx_http_file_cache.c     cache->shm_zone->init = ngx_http_file_cache_init;
cache            1677 http/ngx_http_file_cache.c     cache->shm_zone->data = cache;
cache            1679 http/ngx_http_file_cache.c     cache->inactive = inactive;
cache            1680 http/ngx_http_file_cache.c     cache->max_size = max_size;
cache             360 http/ngx_http_request.h     ngx_http_cache_t                 *cache;
cache             396 http/ngx_http_upstream.c     r->cache = NULL;
cache             453 http/ngx_http_upstream.c     if (u->conf->cache) {
cache             640 http/ngx_http_upstream.c     c = r->cache;
cache             679 http/ngx_http_upstream.c         c = r->cache;
cache             683 http/ngx_http_upstream.c         c->file_cache = u->conf->cache->data;
cache             779 http/ngx_http_upstream.c     c = r->cache;
cache            1317 http/ngx_http_upstream.c     if (r->cache) {
cache            1318 http/ngx_http_upstream.c         u->buffer.pos += r->cache->header_start;
cache            1502 http/ngx_http_upstream.c         if (r->cache) {
cache            1503 http/ngx_http_upstream.c             u->buffer.pos += r->cache->header_start;
cache            1733 http/ngx_http_upstream.c             if (r->cache) {
cache            1739 http/ngx_http_upstream.c                     r->cache->valid_sec = ngx_time() + valid;
cache            1740 http/ngx_http_upstream.c                     r->cache->error = status;
cache            1743 http/ngx_http_upstream.c                 ngx_http_file_cache_free(r->cache, u->pipe->temp_file);
cache            2119 http/ngx_http_upstream.c     if (r->cache && r->cache->file.fd != NGX_INVALID_FILE) {
cache            2120 http/ngx_http_upstream.c         ngx_pool_run_cleanup_file(r->pool, r->cache->file.fd);
cache            2121 http/ngx_http_upstream.c         r->cache->file.fd = NGX_INVALID_FILE;
cache            2150 http/ngx_http_upstream.c             r->cache->min_uses = u->conf->cache_min_uses;
cache            2151 http/ngx_http_upstream.c             r->cache->body_start = u->conf->buffer_size;
cache            2152 http/ngx_http_upstream.c             r->cache->file_cache = u->conf->cache->data;
cache            2170 http/ngx_http_upstream.c         valid = r->cache->valid_sec;
cache            2176 http/ngx_http_upstream.c                 r->cache->valid_sec = now + valid;
cache            2181 http/ngx_http_upstream.c             r->cache->last_modified = r->headers_out.last_modified_time;
cache            2182 http/ngx_http_upstream.c             r->cache->date = now;
cache            2183 http/ngx_http_upstream.c             r->cache->body_start = (u_short) (u->buffer.pos - u->buffer.start);
cache            2196 http/ngx_http_upstream.c     if (u->cacheable == 0 && r->cache) {
cache            2197 http/ngx_http_upstream.c         ngx_http_file_cache_free(r->cache, u->pipe->temp_file);
cache            2672 http/ngx_http_upstream.c                 ngx_http_file_cache_free(r->cache, u->pipe->temp_file);
cache            2997 http/ngx_http_upstream.c     if (u->cacheable && r->cache) {
cache            3005 http/ngx_http_upstream.c                 r->cache->valid_sec = ngx_time() + valid;
cache            3006 http/ngx_http_upstream.c                 r->cache->error = rc;
cache            3010 http/ngx_http_upstream.c         ngx_http_file_cache_free(r->cache, u->pipe->temp_file);
cache            3111 http/ngx_http_upstream.c     if (r->cache == NULL) {
cache            3115 http/ngx_http_upstream.c     if (r->cache->valid_sec != 0) {
cache            3157 http/ngx_http_upstream.c     r->cache->valid_sec = ngx_time() + n;
cache            3182 http/ngx_http_upstream.c     if (r->cache == NULL) {
cache            3186 http/ngx_http_upstream.c     if (r->cache->valid_sec != 0) {
cache            3197 http/ngx_http_upstream.c     r->cache->valid_sec = expires;
cache            3224 http/ngx_http_upstream.c     if (r->cache == NULL) {
cache            3241 http/ngx_http_upstream.c             r->cache->valid_sec = ngx_time() + n;
cache            3252 http/ngx_http_upstream.c         r->cache->valid_sec = n;
cache            4352 http/ngx_http_upstream.c             && ((conf->cache == NULL) == (prev->cache == NULL))
cache             159 http/ngx_http_upstream.h     ngx_shm_zone_t                  *cache;