Changeset 3f302fd in git


Ignore:
Timestamp:
2007-08-08T16:08:49Z (12 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3
Children:
e3cbc73
Parents:
59f78d0
Message:

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

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.2@471 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r59f78d0 r3f302fd  
    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
  • xcache.c

    r5c003a3 r3f302fd  
    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.