ccache's cleanup algorithm

Scott Bennett bennett at sdf.org
Tue Nov 3 13:26:54 UTC 2015


     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?  If it's really using LRM instead of LRU,
can anyone explain why?


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:   bennett at sdf.org   *xor*   bennett at freeshell.org  *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************


More information about the freebsd-ports mailing list