Touch files on each request.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 30 Sep 2013 23:55:55 -0400
changeset 140 69d34fba4a7b
parent 139 59d83397bad9
child 141 78e574af0a2e
Touch files on each request.

This is so we can delete cached files that haven't been touched in X days.
nph-offload.c
--- a/nph-offload.c	Mon Jan 21 04:07:39 2013 -0500
+++ b/nph-offload.c	Mon Sep 30 23:55:55 2013 -0400
@@ -1568,6 +1568,8 @@
         {
             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