]> granicus.if.org Git - apache/commitdiff
Fix problem with expiry date being set in the past.
authorBill Stoddard <stoddard@apache.org>
Sat, 23 Feb 2002 19:44:31 +0000 (19:44 +0000)
committerBill Stoddard <stoddard@apache.org>
Sat, 23 Feb 2002 19:44:31 +0000 (19:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93552 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.c

index f8e3700d5b6bde292eec7c7eeb3d60486d6e81ad..f7055d51fc922c89aae3a3382ff870ca0d362d85 100644 (file)
@@ -685,15 +685,12 @@ static int cache_in_filter(ap_filter_t *f, apr_bucket_brigade *in)
     }
     info->lastmod = lastmod;
 
-    /* so we now have the expiry date */
     /* if no expiry date then
      *   if lastmod
      *      expiry date = now + min((date - lastmod) * factor, maxexpire)
      *   else
      *      expire date = now + defaultexpire
      */
-    ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
-                 "cache: Expiry date is %ld", (long)exp);
     if (exp == APR_DATE_BAD) {
         if (lastmod != APR_DATE_BAD) {
             apr_time_t x = (apr_time_t) ((date - lastmod) * conf->factor);
@@ -701,10 +698,9 @@ static int cache_in_filter(ap_filter_t *f, apr_bucket_brigade *in)
                 x = conf->maxex;
             exp = now + x;
         }
-        else
+        else {
             exp = now + conf->defex;
-        ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server,
-                     "cache: Expiry date calculated %ld", (long)exp);
+        }
     }
     info->expire = exp;