From f5991c0f4b90c6392d139decfecd00b25d1a2690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 26 Jan 2022 21:29:00 +0800 Subject: improve --- script/workspace/loading.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/workspace/loading.lua') diff --git a/script/workspace/loading.lua b/script/workspace/loading.lua index aedd74a0..2ea981e7 100644 --- a/script/workspace/loading.lua +++ b/script/workspace/loading.lua @@ -111,6 +111,7 @@ function mt:loadFile(uri, libraryUri) self.read = self.read + 1 self:update() files.addRef(uri) + self._cache[uri] = true log.info(('Skip loaded file: %s'):format(uri)) else local content = pub.awaitTask('loadFile', furi.decode(uri)) @@ -176,7 +177,6 @@ function m.create(scp) _stash = {}, _cache = {}, }, mt) - scp:set('cachedUris', loading._cache) m._loadings[loading] = true return loading end -- cgit v1.2.3