Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

clcache

github.com

  • Free plan
  • Windows
6.8 Club score Visit github.com

What clcache is

clcache is a free, open-source Python script for Microsoft Visual Studio’s cl.exe compiler on Windows. It intercepts compiler calls and reuses cached object files to avoid recompiling matching work; unsupported invocations can be sent to the real compiler. Cache keys use preprocessed source, a normalized command line, and the compiler binary’s size and modification time. Command-line controls provide statistics, cleanup, clearing, and maximum-size settings. The default cache limit is 1073741824 bytes (1 GiB). Object files can be compressed at levels 1 through 9, although changing compression settings requires clearing the cache. Hard-link mode requires cache and build directories on the same drive. Documentation covers Visual Studio and MSBuild integration and recommends disabling TrackFileAccess. The documented cache path requires /c, excludes /link and /Zi, and supports /Z7. INCLUDE and LIBPATH changes may not be detected. A local cache, clcachesrv.py hash process, and memcached backend are described.

Who it suits

clcache suits Windows developers building with Microsoft Visual Studio’s cl.exe compiler. It is relevant to Visual Studio or MSBuild workflows that can use a local cached build result.

Good to know, and what to watch

  • Free BSD 3-Clause licensed source
  • Reuses cached object files
  • Supports Visual Studio and MSBuild
  • Offers compression and cache controls
  • Includes a self-hosted option
  • Windows and cl.exe focused
  • INCLUDE and LIBPATH changes may go undetected
  • Documented path excludes /link and /Zi
  • Hard links require one drive

clcache

Free

Open source

The verdict

clcache is a focused compiler cache for Microsoft’s Windows build tools. Its usefulness depends on compatible compiler invocations and accepting the documented environment-variable and cache constraints.

What the maker publishes

Build integrations
The README documents integration with Visual Studio and MSBuild and recommends disabling TrackFileAccess to avoid cache deletion and file tracking issues. source
Cache controls
The command line options include cache statistics, cleanup, clearing, and setting the maximum cache size. source
Cache key
The cache key uses preprocessed source, a normalized command line, and the compiler binary’s size and modification time. source
Cache size limit
The default maximum cache size is 1073741824 bytes (1 GiB). source
Compiler integration
It is designed to intercept calls to cl.exe and can relay unsupported invocations to the real compiler. source
Compression
Object files can be compressed, with a configurable compression level from 1 to 9; changing compression settings requires clearing the cache. source
Hard links
Hard-link mode can improve speed and disk usage, but requires the cache and build directories to be on the same drive. source
Intended users
The project is intended for users building with Microsoft Visual Studio’s cl.exe compiler who want to reuse compiled object files. source
Known limitation
The INCLUDE and LIBPATH environment variables are listed as unsupported, and changes to them may not be detected between compilations. source
License
The project source is subject to the BSD 3-Clause License unless a file states otherwise. source
Purpose
clcache is a Python script that avoids unnecessary recompilation by reusing cached object files for Microsoft Visual Studio. source
Shared cache options
A running clcachesrv.py process can cache file hashes, and a memcached backend can be used to save and restore cached data. source
Supported compile invocations
The documented cache path requires /c, excludes /link, and excludes /Zi, while /Z7 is supported. source

Checked against the maker's pages on 8 Oct 2026.