*-c*, *--cleanup*::
- Clean up the cache by removing old cached files until the specified file
- number and cache size limits are not exceeded. This also recalculates the
- cache file count and size totals. Normally, there is no need to initiate
- cleanup manually as ccache keeps the cache below the specified limits at
- runtime and keeps statistics up to date on each compilation. Forcing a
- cleanup is mostly useful if you have modified the cache contents manually or
- believe that the cache size statistics may be inaccurate.
+ Clean up the cache by removing not recently used cached files until the
+ specified file number and cache size limits are not exceeded. This also
+ recalculates the cache file count and size totals. Normally, there is no
+ need to initiate cleanup manually as ccache keeps the cache below the
+ specified limits at runtime and keeps statistics up to date on each
+ compilation. Forcing a cleanup is mostly useful if you have modified the
+ cache contents manually or believe that the cache size statistics may be
+ inaccurate.
*-C*, *--clear*::
*--evict-older-than* _AGE_::
- Remove files older than _AGE_ from the cache. _AGE_ should be an unsigned
- integer with a `d` (days) or `s` (seconds) suffix. If combined with
- `--evict-namespace`, only remove old files within that namespace.
+ Remove files used less recently than _AGE_ from the cache. _AGE_ should be
+ an unsigned integer with a `d` (days) or `s` (seconds) suffix. If combined
+ with `--evict-namespace`, only remove files within that namespace.
*-h*, *--help*::
*--trim-dir* _PATH_::
- Remove old files from directory _PATH_ until it is at most the size
- specified by `--trim-max-size`.
+ Remove not recently used files from directory _PATH_ until it is at most the
+ size specified by `--trim-max-size`.
+
WARNING: Don't use this option to trim the local cache. To trim the local cache
directory to a certain size, use `CCACHE_MAXSIZE=_SIZE_ ccache -c`.
In the third form, ccache is masquerading as the compiler.
Common options:
- -c, --cleanup delete old files and recalculate size counters
- (normally not needed as this is done
- automatically)
+ -c, --cleanup delete not recently used files and recalculate
+ size counters (normally not needed as this is
+ done automatically)
-C, --clear clear the cache completely (except configuration)
--config-path PATH operate on configuration file PATH instead of the
default
default
--evict-namespace NAMESPACE
remove files created in namespace NAMESPACE
- --evict-older-than AGE remove files older than AGE (unsigned integer
- with a d (days) or s (seconds) suffix)
+ --evict-older-than AGE remove files used less recently than AGE
+ (unsigned integer with a d (days) or s (seconds)
+ suffix)
-F, --max-files NUM set maximum number of files in cache to NUM (use
0 for no limit)
-M, --max-size SIZE set maximum size of cache to SIZE (use 0 for no
-V, --version print version and copyright information
Options for remote file-based storage:
- --trim-dir PATH remove old files from directory PATH until it is
- at most the size specified by --trim-max-size
- (note: don't use this option to trim the local
- cache)
+ --trim-dir PATH remove not recently used files from directory
+ PATH until it is at most the size specified by
+ --trim-max-size (note: don't use this option to
+ trim the local cache)
--trim-max-size SIZE specify the maximum size for --trim-dir (use 0 for
no limit); available suffixes: kB, MB, GB, TB
(decimal) and KiB, MiB, GiB, TiB (binary);