Changeset 472 for trunk/xcache.c


Ignore:
Timestamp:
2007-08-08T18:10:16+02:00 (7 years ago)
Author:
moo
Message:

merged [471] from b1.2: live with wrong system time: allow caching files with mtime in further

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/xcache.c

    r467 r472  
    776776    xc_entry_data_php_t *php; 
    777777    char *ptr; 
     778    time_t delta; 
    778779 
    779780    if (!filename || !SG(request_info).path_translated) { 
     
    830831 
    831832stat_done: 
    832         if (XG(request_time) - pbuf->st_mtime < 2 && !xc_test) { 
     833        delta = XG(request_time) - pbuf->st_mtime < 2; 
     834        if (abs(delta) < 2 && !xc_test) { 
    833835            return FAILURE; 
    834836        } 
Note: See TracChangeset for help on using the changeset viewer.