Skip to content

Commit

Permalink
Touch files on each request.
Browse files Browse the repository at this point in the history
This is so we can delete cached files that haven't been touched in X days.
  • Loading branch information
icculus committed Oct 1, 2013
1 parent ee90cd6 commit 1339344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nph-offload.c
Expand Up @@ -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
Expand Down

0 comments on commit 1339344

Please sign in to comment.