Changeset 626 for branches/1.3/xcache.c
- Timestamp:
- 2009-07-05T11:15:55+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/xcache.c
r625 r626 226 226 for (p = xce->cache->entries[xce->hvalue]; p; p = p->next) { 227 227 if (xc_entry_equal_dmz(xce, p)) { 228 if (p->type == XC_TYPE_VAR || /* PHP */ p->data.php->mtime == xce->data.php->mtime ) {228 if (p->type == XC_TYPE_VAR || /* PHP */ p->data.php->mtime == xce->data.php->mtime && p->data.php->sourcesize == xce->data.php->sourcesize) { 229 229 p->hits ++; 230 230 p->atime = XG(request_time); … … 2803 2803 REGISTER_INI_ENTRIES(); 2804 2804 2805 xc_config_long(&xc_php_size, "xcache.size", "0"); 2806 xc_config_hash(&xc_php_hcache, "xcache.count", "1"); 2807 xc_config_hash(&xc_php_hentry, "xcache.slots", "8K"); 2808 2809 xc_config_long(&xc_var_size, "xcache.var_size", "0"); 2810 xc_config_hash(&xc_var_hcache, "xcache.var_count", "1"); 2811 xc_config_hash(&xc_var_hentry, "xcache.var_slots", "8K"); 2812 2805 2813 if (strcmp(sapi_module.name, "cli") == 0) { 2806 2814 if ((env = getenv("XCACHE_TEST")) != NULL) { … … 2808 2816 } 2809 2817 if (!xc_test) { 2810 /* disable cache for cli except for test */2818 /* disable cache for cli except for testing */ 2811 2819 xc_php_size = xc_var_size = 0; 2812 2820 } 2813 2821 } 2814 2815 xc_config_long(&xc_php_size, "xcache.size", "0");2816 xc_config_hash(&xc_php_hcache, "xcache.count", "1");2817 xc_config_hash(&xc_php_hentry, "xcache.slots", "8K");2818 2819 xc_config_long(&xc_var_size, "xcache.var_size", "0");2820 xc_config_hash(&xc_var_hcache, "xcache.var_count", "1");2821 xc_config_hash(&xc_var_hentry, "xcache.var_slots", "8K");2822 2822 2823 2823 if (xc_php_size <= 0) {
Note: See TracChangeset
for help on using the changeset viewer.

