浏览代码

dev: oops

KernelDeimos 7 月之前
父节点
当前提交
3762037576
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/puter-js/src/modules/FileSystem/CacheFS.js
  2. 1 1
      src/puter-js/src/modules/FileSystem/index.js

+ 1 - 1
src/puter-js/src/modules/FileSystem/CacheFS.js

@@ -4,7 +4,7 @@ import { ProxyFilesystem, TFilesystem } from "./definitions";
 import { uuidv4 } from "../../lib/utils";
 
 export const ROOT_UUID = '00000000-0000-0000-0000-000000000000';
-const TTL = 10 * 1000;
+const TTL = 5 * 1000;
 
 export class CacheFS extends putility.AdvancedBase {
     static PROPERTIES = {

+ 1 - 1
src/puter-js/src/modules/FileSystem/index.js

@@ -82,7 +82,7 @@ export class PuterJSFileSystemModule extends AdvancedBase {
         // this.filesystem = this.fs_nocache;
         this.fs_proxy_ = new ProxyFilesystem({ delegate: this.fs_nocache_ });
         this.filesystem = this.fs_proxy_.as(TFilesystem);
-        this.fs_proxy_.delegate = this.fs_cache_;
+        // this.fs_proxy_.delegate = this.fs_cache_;
     }
 
     cache_on () {