Local disk cache file configuration seemingly does not work at all.
I have a ~/.config/sccache/config as follows
[cache.disk]
# 20GiB
size = 21474836480
Ensure no existing sccache is running
sccache --stop-server
SCCACHE_LOG=debug SCCACHE_START_SERVER=1 SCCACHE_NO_DAEMON=1 sccache
> SCCACHE_LOG=debug SCCACHE_START_SERVER=1 SCCACHE_NO_DAEMON=1 sccache
[2026-06-27 DEBUG sccache::config] Attempting to read config file at "/home/diana/.config/sccache/config"
[2026-06-27 INFO sccache::server] start_server: 127.0.0.1:4226
[2026-06-27 DEBUG sccache::cache::cache] Init disk cache with dir "/home/diana/.cache/sccache", size 10737418240
[2026-06-27 INFO sccache::server] server has setup with ReadWrite
[2026-06-27 INFO sccache::server] server started, listening on 127.0.0.1:4226
Note the size have not been applied.
Now the following config
[cache.disk]
dir = "/home/diana/.cache/sccache2"
# 20GiB
size = 21474836480
Save for log timestamps, the output is identical as before, before dir and size have not been applied.
sccache 0.16.0 and 0.15.0
Related: #2172, closed after OP found a now non-working workaround.
Local disk cache file configuration seemingly does not work at all.
I have a
~/.config/sccache/configas followsEnsure no existing sccache is running
sccache --stop-serverSCCACHE_LOG=debug SCCACHE_START_SERVER=1 SCCACHE_NO_DAEMON=1 sccacheNote the size have not been applied.
Now the following config
Save for log timestamps, the output is identical as before, before
dirandsizehave not been applied.sccache
0.16.0and0.15.0Related: #2172, closed after OP found a now non-working workaround.