Changeset 317 for trunk/xcache.c


Ignore:
Timestamp:
2006-12-10T05:15:53+01:00 (8 years ago)
Author:
moo
Message:

cacher: fix stat and skip user stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r315 r317  
    705705        if (VCWD_STAT(filepath, pbuf) == 0) { 
    706706            free_alloca(paths); 
    707             return FAILURE; 
     707            return SUCCESS; 
    708708        } 
    709709    } 
     
    711711    free_alloca(paths); 
    712712 
    713     return SUCCESS; 
     713    return FAILURE; 
    714714} 
    715715/* }}} */ 
     
    747747 
    748748    if (!filename || !SG(request_info).path_translated) { 
     749        return FAILURE; 
     750    } 
     751 
     752    if (strstr(filename, "://") != NULL) { 
    749753        return FAILURE; 
    750754    } 
     
    11471151    assert(xc_initized); 
    11481152 
     1153    TRACE("type = %d\n", h->type); 
    11491154    if (!XG(cacher)) { 
    11501155        op_array = origin_compile_file(h, type TSRMLS_CC); 
     
    11611166    xce.data.php = &php; 
    11621167    if (xc_entry_init_key_php(&xce, filename, opened_path_buffer TSRMLS_CC) != SUCCESS) { 
     1168        TRACE("failed to init key for %s", filename); 
    11631169        return origin_compile_file(h, type TSRMLS_CC); 
    11641170    } 
Note: See TracChangeset for help on using the changeset viewer.