Changeset 374
- Timestamp:
- 05/05/2007 11:01:04 AM (19 months ago)
- Files:
-
- 1 modified
-
trunk/xcache.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r366 r374 1964 1964 xc_entry_data_var_t var; 1965 1965 zval *name; 1966 int found = 0; 1966 1967 1967 1968 if (!xc_var_caches) { … … 1980 1981 if (stored_xce) { 1981 1982 if (!VAR_ENTRY_EXPIRED(stored_xce)) { 1983 found = 1; 1982 1984 xc_processor_restore_zval(return_value, stored_xce->data.var->value, stored_xce->data.var->have_references TSRMLS_CC); 1983 1985 /* return */ … … 1991 1993 RETVAL_NULL(); 1992 1994 } LEAVE_LOCK(xce.cache); 1995 if (found) { 1996 xce.cache->hits ++; 1997 } 1998 else { 1999 xce.cache->misses ++; 2000 } 1993 2001 } 1994 2002 /* }}} */ … … 2037 2045 xc_entry_data_var_t var; 2038 2046 zval *name; 2047 int found = 0; 2039 2048 2040 2049 if (!xc_var_caches) { … … 2053 2062 if (stored_xce) { 2054 2063 if (!VAR_ENTRY_EXPIRED(stored_xce)) { 2064 found = 1; 2055 2065 RETVAL_TRUE; 2056 2066 /* return */ … … 2064 2074 RETVAL_FALSE; 2065 2075 } LEAVE_LOCK(xce.cache); 2076 if (found) { 2077 xce.cache->hits ++; 2078 } 2079 else { 2080 xce.cache->misses ++; 2081 } 2066 2082 } 2067 2083 /* }}} */

