Changeset 1063 in svn for trunk/mod_cacher/xc_cacher.c


Ignore:
Timestamp:
2012-07-27T16:03:21Z (3 years ago)
Author:
Xuefer
Message:

htdocs/cacher: clogs->skips, compiling ad part of status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1062 r1063  
    7171    zend_ulong updates;
    7272    zend_ulong hits;
    73     zend_ulong clogs;
     73    zend_ulong skips;
    7474    zend_ulong ooms;
    7575    zend_ulong errors;
     
    617617    add_assoc_long_ex(return_value, ZEND_STRS("misses"),    cached->updates); /* deprecated */
    618618    add_assoc_long_ex(return_value, ZEND_STRS("hits"),      cached->hits);
    619     add_assoc_long_ex(return_value, ZEND_STRS("clogs"),     cached->clogs);
     619    add_assoc_long_ex(return_value, ZEND_STRS("skips"),     cached->skips);
     620    add_assoc_long_ex(return_value, ZEND_STRS("clogs"),     cached->skips); /* deprecated */
    620621    add_assoc_long_ex(return_value, ZEND_STRS("ooms"),      cached->ooms);
    621622    add_assoc_long_ex(return_value, ZEND_STRS("errors"),    cached->errors);
     
    20482049    xc_sandboxed_compiler_t sandboxed_compiler;
    20492050
    2050     /* stale clogs precheck */
     2051    /* stale skips precheck */
    20512052    if (XG(request_time) - cache->cached->compiling < 30) {
    2052         cache->cached->clogs ++;
     2053        cache->cached->skips ++;
    20532054        return old_compile_file(h, type TSRMLS_CC);
    20542055    }
     
    21102111        if (XG(request_time) - cache->cached->compiling < 30) {
    21112112            TRACE("%s", "miss php, but compiling");
    2112             cache->cached->clogs ++;
     2113            cache->cached->skips ++;
    21132114            gaveup = 1;
    21142115            break;
     
    22972298                xc_lock_destroy(cache->lck);
    22982299            }
    2299             /* do NOT free
    2300             if (cache->entries) {
    2301                 cache->mem->handlers->free(cache->mem, cache->entries);
    2302             }
    2303             cache->mem->handlers->free(cache->mem, cache);
    2304             */
     2300            /* do NOT touch cached data */
    23052301            shm = cache->shm;
    23062302            cache->shm->handlers->memdestroy(cache->mem);
Note: See TracChangeset for help on using the changeset viewer.