Changeset 256 in svn for branches/1.1/xcache.c


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

trunk->1.1

  • merged [254] fix xcache.var_ttl displaying in info, fix xcache_get for ttl-unlimited
  • merged [250] admin: fix switcher class on active
  • merged [249] return 0 s instead of empty for deltatime
  • merged [201] coverager: avoid crash when upstream failed to compile file
Location:
branches/1.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1

  • branches/1.1/xcache.c

    r246 r256  
    15841584        stored_xce = xc_entry_find_dmz(&xce TSRMLS_CC);
    15851585        if (stored_xce) {
    1586             if (XG(request_time) <= stored_xce->ctime + stored_xce->ttl) {
     1586            if (!VAR_ENTRY_EXPIRED(stored_xce)) {
    15871587                xc_processor_restore_zval(return_value, stored_xce->data.var->value TSRMLS_CC);
    15881588                /* return */
     
    20942094    STD_PHP_INI_BOOLEAN("xcache.optimizer",              "0", PHP_INI_ALL,    OnUpdateBool,        optimizer,         zend_xcache_globals, xcache_globals)
    20952095#endif
    2096     STD_PHP_INI_BOOLEAN("xcache.var_ttl",                "0", PHP_INI_ALL,    OnUpdateLong,        var_ttl,   zend_xcache_globals, xcache_globals)
     2096    STD_PHP_INI_ENTRY  ("xcache.var_ttl",                "0", PHP_INI_ALL,    OnUpdateLong,        var_ttl,           zend_xcache_globals, xcache_globals)
    20972097#ifdef HAVE_XCACHE_COVERAGER
    20982098    PHP_INI_ENTRY1     ("xcache.coveragedump_directory", "/tmp/pcov/", PHP_INI_SYSTEM, xc_OnUpdateString,   &xc_coveragedump_dir)
Note: See TracChangeset for help on using the changeset viewer.