Skip to main content

CACHE_CLEAR_TIMEOUT_SECS

Constant CACHE_CLEAR_TIMEOUT_SECS 

Source
pub const CACHE_CLEAR_TIMEOUT_SECS: u64 = 600;
Expand description

Ceiling for one devp caches clear step.

Ten minutes, not the five seconds a query gets: go clean -modcache and deleting a multi-gigabyte ~/.gradle/caches are genuinely slow, and on Windows every file in a module cache is read-only, so the delete is a chmod-and-unlink per file. A clear that has not finished in ten minutes is wedged, and killing it leaves a partially emptied cache the manager refills on its own.