diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-09 14:44:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-09 14:44:38 +0900 |
| commit | 0802fd44ed11283f15900d2993fc495acf1bed01 (patch) | |
| tree | e0e072dbbf3a7cbaa5f2be22682f6070ec2b7ea1 /crates/mozart/src/commands/clear_cache.rs | |
| parent | 75b15f58b778b4574e74c86c103b7e36baf4eeb3 (diff) | |
| download | php-mozart-0802fd44ed11283f15900d2993fc495acf1bed01.tar.gz php-mozart-0802fd44ed11283f15900d2993fc495acf1bed01.tar.zst php-mozart-0802fd44ed11283f15900d2993fc495acf1bed01.zip | |
refactor(commands): consolidate get_platform_requirement_filter into shared module
Removes the per-command duplicate implementations of
get_platform_requirement_filter from dump_autoload and reinstall,
and lifts a single canonical version into commands.rs.
Diffstat (limited to 'crates/mozart/src/commands/clear_cache.rs')
| -rw-r--r-- | crates/mozart/src/commands/clear_cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/clear_cache.rs b/crates/mozart/src/commands/clear_cache.rs index ee8aad9..8fdf665 100644 --- a/crates/mozart/src/commands/clear_cache.rs +++ b/crates/mozart/src/commands/clear_cache.rs @@ -68,7 +68,7 @@ pub async fn execute( match key { "cache-files-dir" => cache.gc(config.cache_files_ttl, config.cache_files_maxsize)?, "cache-repo-dir" => cache.gc(config.cache_files_ttl, 1024 * 1024 * 1024 /* 1GB, this should almost never clear anything that is not outdated */)?, - "cache-vcs-dir" => cache.gc_vcs(config.cache_files_ttl)?, + "cache-vcs-dir" => cache.gc_vcs_cache(config.cache_files_ttl)?, _ => unreachable!(), }; } else { |
