From 45d20e4dea709289b08b3c7f6946af03519c9280 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 11 Jun 2022 20:11:50 +0200 Subject: [PATCH] docs: Mention that mtime is used for LRU cleanup Closes #1095. (cherry picked from commit b1c37b330c24fd2b9f3f41762a755a51806fbaaf) --- doc/MANUAL.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/MANUAL.adoc b/doc/MANUAL.adoc index 99ffa6b97..ec58e13bf 100644 --- a/doc/MANUAL.adoc +++ b/doc/MANUAL.adoc @@ -1213,6 +1213,10 @@ The reason for removing more files than just those needed to not exceed the max limits is that a cleanup is a fairly slow operation, so it would not be a good idea to trigger it often, like after each cache miss. +The LRU cleanup makes use of the file modification time (mtime) of cache +entries; ccache updates mtime of the cache entries read on a cache hit to mark +them as "recently used". + === Manual cleanup -- 2.47.2