commit - 1495fbb279fee499ef1cd0017feecdebe5d4a030
commit + 946d3439b93be9bac9eb246d9ff40f9e02e259a8
blob - d2aa0e3a6e1112829f4b897b9d2a90aa48c328cf
blob + fed5701db9d4d1231f26afdf5888b67adc3f501b
--- mcache.c
+++ mcache.c
[LINE_PRE_END] = "```",
};
-static struct timeval tv = { 60, 0 };
+static struct timeval tv = { 5 * 60, 0 };
static struct event timerev;
static struct ohash h;
unsigned int i;
time_t treshold;
- treshold = time(NULL) - 15 * 60;
+ /* delete pages older than an hour */
+ treshold = time(NULL) - 60 * 60;
for (e = ohash_first(&h, &i); e != NULL; e = ohash_next(&h, &i))
if (e->ts < treshold)