Changeset 1132 for trunk/mod_cacher/xc_cacher.c
- Timestamp:
- 08/09/2012 05:43:48 AM (10 months ago)
- Files:
-
- 1 modified
-
trunk/mod_cacher/xc_cacher.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mod_cacher/xc_cacher.c
r1129 r1132 94 94 }; 95 95 /* }}} */ 96 typedef struct { /* {{{ xc_cache_t: only cache info, not in shm */ 97 int cacheid; 98 xc_hash_t *hcache; /* hash to cacheid */ 99 100 struct _xc_lock_t *lck; 101 struct _xc_shm_t *shm; /* which shm contains us */ 102 struct _xc_mem_t *mem; /* which mem contains us */ 103 104 xc_hash_t *hentry; /* hash settings to entry */ 105 xc_hash_t *hphp; /* hash settings to php */ 106 xc_cached_t *cached; 107 } xc_cache_t; 108 /* }}} */ 96 109 97 110 /* {{{ globals */ … … 150 163 php->hits = 0; 151 164 php->refcount = 0; 152 stored_php = xc_processor_store_xc_entry_data_php_t(cache , php TSRMLS_CC);165 stored_php = xc_processor_store_xc_entry_data_php_t(cache->shm, cache->mem, php TSRMLS_CC); 153 166 if (stored_php) { 154 167 xc_php_add_unlocked(cache->cached, stored_php); … … 297 310 entry->atime = XG(request_time); 298 311 stored_entry = type == XC_TYPE_PHP 299 ? (xc_entry_t *) xc_processor_store_xc_entry_php_t(cache , (xc_entry_php_t *) entry TSRMLS_CC)300 : (xc_entry_t *) xc_processor_store_xc_entry_var_t(cache , (xc_entry_var_t *) entry TSRMLS_CC);312 ? (xc_entry_t *) xc_processor_store_xc_entry_php_t(cache->shm, cache->mem, (xc_entry_php_t *) entry TSRMLS_CC) 313 : (xc_entry_t *) xc_processor_store_xc_entry_var_t(cache->shm, cache->mem, (xc_entry_var_t *) entry TSRMLS_CC); 301 314 if (stored_entry) { 302 315 xc_entry_add_unlocked(cache->cached, entryslotid, stored_entry); … … 3285 3298 static PHP_MINIT_FUNCTION(xcache_cacher) /* {{{ */ 3286 3299 { 3287 char *env;3288 3300 zend_extension *ext; 3289 3301 zend_llist_position lpos;

