Re: ccache's cleanup algorithm
Joel Rosdahl <[email protected]> Thu, 5 Nov 2015 20:10:16 +0100
| Newsgroups | gmane.comp.compilers.ccache |
|---|---|
| Message-ID | <CAK8D=pgjXrAEb5FFXG00gsT6gkbgmU5D-AHUU9pYb4pDwPGSGQ@mail.gmail.com> |
Hi Scott, In ccache's cleanup.c module, the comments say that files are deleted from > the cache on a LRU basis. However, the code refers to mtime, not atime, so > it appears that ccache is, in reality, using a Least Recently *Modified* basis > upon which to expire files from the cache. Is that really what ccache does? > Or did I miss something? Yes, mtime is updated on a cache hit, looks for calls to the update_mtime function. -- Joel