From 133934445c0cfd5a61cd821c7420039ce71211bf Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 30 Sep 2013 23:55:55 -0400 Subject: [PATCH] Touch files on each request. This is so we can delete cached files that haven't been touched in X days. --- nph-offload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nph-offload.c b/nph-offload.c index 35551ab..c41ec9e 100644 --- a/nph-offload.c +++ b/nph-offload.c @@ -1568,6 +1568,8 @@ static int serverMainline(int argc, char **argv, char **envp) { listFree(&head); debugEcho("File is cached."); + utimes(GFileDataPath, NULL); // update to latest time so we know what's being requested most. + utimes(GMetaDataPath, NULL); // update to latest time so we know what's being requested most. } // if else