Changeset 471 for branches/1.2/xcache.c


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

live with wrong system time: allow caching files with mtime in further

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/xcache.c

    r465 r471  
    719719    xc_entry_data_php_t *php; 
    720720    char *ptr; 
     721    time_t delta; 
    721722 
    722723    if (!filename || !SG(request_info).path_translated) { 
     
    769770 
    770771stat_done: 
    771         if (XG(request_time) - pbuf->st_mtime < 2 && !xc_test) { 
     772        delta = XG(request_time) - pbuf->st_mtime < 2; 
     773        if (abs(delta) < 2 && !xc_test) { 
    772774            return 0; 
    773775        } 
Note: See TracChangeset for help on using the changeset viewer.