entry->lastmod directly.
/*
- * $Id: ftp.cc,v 1.44 1996/07/19 02:42:21 wessels Exp $
+ * $Id: ftp.cc,v 1.45 1996/07/19 17:38:36 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
case 301: /* Moved Permanently */
case 410: /* Gone */
/* These can be cached for a long time, make the key public */
- entry->expires = squid_curtime + ttlSet(entry);
+ ttlSet(entry);
if (BIT_TEST(entry->flag, CACHABLE))
storeSetPublicKey(entry);
break;
BIT_RESET(entry->flag, CACHABLE);
storeReleaseRequest(entry);
} else if (!(entry->flag & DELETE_BEHIND)) {
- entry->expires = squid_curtime + ttlSet(entry);
+ ttlSet(entry);
}
/* update fdstat and fdtable */
storeComplete(entry);
/*
- * $Id: gopher.cc,v 1.33 1996/07/18 20:27:01 wessels Exp $
+ * $Id: gopher.cc,v 1.34 1996/07/19 17:38:37 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
if (data->conversion != NORMAL)
gopherEndHTML(data);
if (!(entry->flag & DELETE_BEHIND))
- entry->expires = squid_curtime + ttlSet(entry);
+ ttlSet(entry);
BIT_RESET(entry->flag, DELAY_SENDING);
storeComplete(entry);
comm_close(fd);
/*
- * $Id: http.cc,v 1.62 1996/07/18 20:27:02 wessels Exp $
+ * $Id: http.cc,v 1.63 1996/07/19 17:38:38 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
static void httpMakePublic(entry)
StoreEntry *entry;
{
- entry->expires = squid_curtime + ttlSet(entry);
+ ttlSet(entry);
if (BIT_TEST(entry->flag, CACHABLE))
storeSetPublicKey(entry);
}
/*
- * $Id: squid.h,v 1.28 1996/07/18 20:27:08 wessels Exp $
+ * $Id: squid.h,v 1.29 1996/07/19 17:38:38 wessels Exp $
*
* AUTHOR: Duane Wessels
*
extern void send_announce _PARAMS((void));
extern int sslStart _PARAMS((int fd, char *, request_t *, char *, int *sz));
extern char *storeToString _PARAMS((StoreEntry *));
-extern time_t ttlSet _PARAMS((StoreEntry *));
+extern void ttlSet _PARAMS((StoreEntry *));
extern void ttlAddToList _PARAMS((char *, time_t, int, time_t));
extern int waisStart _PARAMS((int, char *, method_t, char *, StoreEntry *));