Revert "feat: add persistent Deno cache to Railway executor for faster tool loading"
This reverts commit eb8a5ff91e.
This commit is contained in:
parent
0c7b058593
commit
d843d7b78d
3 changed files with 3 additions and 40 deletions
|
|
@ -104,14 +104,7 @@ async function loadAndDescribe(req: Request): Promise<Response> {
|
|||
} else {
|
||||
// Dynamic import from esm.sh (Deno supports this natively!)
|
||||
const url = importUrl || `https://esm.sh/${packageName}@${version}`;
|
||||
|
||||
// Log cache status for visibility
|
||||
const isFirstImport = !moduleCache.has(cacheKey);
|
||||
if (isFirstImport) {
|
||||
console.log(`📦 Importing from network (will be cached by Deno): ${url}`);
|
||||
} else {
|
||||
console.log(`✅ Using in-memory cache: ${url}`);
|
||||
}
|
||||
console.log(`📦 Importing: ${url}`);
|
||||
|
||||
const module = await import(url);
|
||||
let rawExport = module[exportName];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue