[ccache] ccache's cleanup algorithm

Joel Rosdahl joel at rosdahl.net
Thu Nov 5 19:10:16 UTC 2015

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

-- Joel

More information about the ccache mailing list