summaryrefslogtreecommitdiff
path: root/cli/factory.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-26 19:59:17 -0400
committerGitHub <noreply@github.com>2024-08-26 23:59:17 +0000
commitc89a20b42899abff5c3ea84660c8110806c5fbee (patch)
treee9d93ce49b391faf0058bd3223ba72d398f78fc8 /cli/factory.rs
parente13230226fe91498b3a5f28a8de6edbe4f164944 (diff)
perf(cache): single cache file for remote modules (#24983)
This changes the global cache to store the cache file for remote modules in one file instead of two.
Diffstat (limited to 'cli/factory.rs')
-rw-r--r--cli/factory.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/factory.rs b/cli/factory.rs
index 25f6afa74..224984643 100644
--- a/cli/factory.rs
+++ b/cli/factory.rs
@@ -304,8 +304,11 @@ impl CliFactory {
let global_cache = self.global_http_cache()?.clone();
match self.cli_options()?.vendor_dir_path() {
Some(local_path) => {
- let local_cache =
- LocalHttpCache::new(local_path.clone(), global_cache);
+ let local_cache = LocalHttpCache::new(
+ local_path.clone(),
+ global_cache,
+ deno_cache_dir::GlobalToLocalCopy::Allow,
+ );
Ok(Arc::new(local_cache))
}
None => Ok(global_cache),