Changeset 570 for trunk/xcache.c

Show
Ignore:
Timestamp:
08/20/2008 02:38:45 PM (5 months ago)
Author:
moo
Message:

disable XCache for cli correctly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r559 r570  
    30533053    REGISTER_INI_ENTRIES(); 
    30543054 
     3055    xc_config_long(&xc_php_size,       "xcache.size",        "0"); 
     3056    xc_config_hash(&xc_php_hcache,     "xcache.count",       "1"); 
     3057    xc_config_hash(&xc_php_hentry,     "xcache.slots",      "8K"); 
     3058 
     3059    xc_config_long(&xc_var_size,       "xcache.var_size",    "0"); 
     3060    xc_config_hash(&xc_var_hcache,     "xcache.var_count",   "1"); 
     3061    xc_config_hash(&xc_var_hentry,     "xcache.var_slots",  "8K"); 
     3062 
    30553063    if (strcmp(sapi_module.name, "cli") == 0) { 
    30563064        if ((env = getenv("XCACHE_TEST")) != NULL) { 
     
    30583066        } 
    30593067        if (!xc_test) { 
    3060             /* disable cache for cli except for test */ 
     3068            /* disable cache for cli except for testing */ 
    30613069            xc_php_size = xc_var_size = 0; 
    30623070        } 
    30633071    } 
    3064  
    3065     xc_config_long(&xc_php_size,       "xcache.size",        "0"); 
    3066     xc_config_hash(&xc_php_hcache,     "xcache.count",       "1"); 
    3067     xc_config_hash(&xc_php_hentry,     "xcache.slots",      "8K"); 
    3068  
    3069     xc_config_long(&xc_var_size,       "xcache.var_size",    "0"); 
    3070     xc_config_hash(&xc_var_hcache,     "xcache.var_count",   "1"); 
    3071     xc_config_hash(&xc_var_hentry,     "xcache.var_slots",  "8K"); 
    30723072 
    30733073    if (xc_php_size <= 0) {