Changeset 471


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

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

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/ChangeLog

    r468 r471  
    111.2.2 2007-?-?
    22== ChangeLog ==
     3 * live with wrong system time: allow caching files with mtime in further
    34 * bug fix for compatibility with Zend Optimizer and other non-cachable
    45 * #102: segv when var cacher is too small
  • 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.