Changeset 254 in svn for trunk


Ignore:
Timestamp:
2006-10-17T16:17:45+02:00 (9 years ago)
Author:
Xuefer
Message:

fix xcache.var_ttl displaying in info, fix xcache_get for ttl-unlimited

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r236 r254  
    16801680        stored_xce = xc_entry_find_dmz(&xce TSRMLS_CC);
    16811681        if (stored_xce) {
    1682             if (XG(request_time) <= stored_xce->ctime + stored_xce->ttl) {
     1682            if (!VAR_ENTRY_EXPIRED(stored_xce)) {
    16831683                xc_processor_restore_zval(return_value, stored_xce->data.var->value, stored_xce->have_references TSRMLS_CC);
    16841684                /* return */
     
    22202220    STD_PHP_INI_BOOLEAN("xcache.optimizer",              "0", PHP_INI_ALL,    OnUpdateBool,        optimizer,         zend_xcache_globals, xcache_globals)
    22212221#endif
    2222     STD_PHP_INI_BOOLEAN("xcache.var_ttl",                "0", PHP_INI_ALL,    OnUpdateLong,        var_ttl,           zend_xcache_globals, xcache_globals)
     2222    STD_PHP_INI_ENTRY  ("xcache.var_ttl",                "0", PHP_INI_ALL,    OnUpdateLong,        var_ttl,           zend_xcache_globals, xcache_globals)
    22232223#ifdef HAVE_XCACHE_COVERAGER
    22242224    STD_PHP_INI_BOOLEAN("xcache.coverager"      ,        "0", PHP_INI_ALL,    OnUpdateBool,        coverager,         zend_xcache_globals, xcache_globals)
Note: See TracChangeset for help on using the changeset viewer.