diff options
Diffstat (limited to 'crates/mozart/src/commands/clear_cache.rs')
| -rw-r--r-- | crates/mozart/src/commands/clear_cache.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/clear_cache.rs b/crates/mozart/src/commands/clear_cache.rs index e0ae111..7bca623 100644 --- a/crates/mozart/src/commands/clear_cache.rs +++ b/crates/mozart/src/commands/clear_cache.rs @@ -20,7 +20,8 @@ pub async fn execute( let repo_cache = Cache::repo(&config); let files_cache = Cache::files(&config); - repo_cache.gc(config.cache_ttl, u64::MAX)?; + // Composer enforces a 1 GB cap on the repo cache during GC + repo_cache.gc(config.cache_ttl, 1024 * 1024 * 1024)?; files_cache.gc(config.cache_files_ttl, config.cache_files_maxsize)?; console.info("Cache garbage collection complete."); |
