summaryrefslogtreecommitdiff
path: root/script-beta/vm/getLinks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm/getLinks.lua')
-rw-r--r--script-beta/vm/getLinks.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/script-beta/vm/getLinks.lua b/script-beta/vm/getLinks.lua
index 8032f55a..b034fd24 100644
--- a/script-beta/vm/getLinks.lua
+++ b/script-beta/vm/getLinks.lua
@@ -19,3 +19,13 @@ function vm.getLinksTo(uri)
vm.getCache('getLinksTo')[uri] = cache
return cache
end
+
+function vm.getFileLinks(uri)
+ local cache = vm.getCache('getFileLinks')[uri]
+ if cache ~= nil then
+ return cache
+ end
+ cache = getFileLinks(uri)
+ vm.getCache('getFileLinks')[uri] = cache
+ return cache
+end