diff options
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index c93a7c53..517ef54e 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -1072,6 +1072,7 @@ m.register '$/status/click' { local result = client.awaitRequestMessage('Info', lang.script.WINDOW_LUA_STATUS_DIAGNOSIS_MSG, { titleDiagnostic, DEVELOP and 'Restart Server', + DEVELOP and 'Clear Node Cache', }) if not result then return @@ -1085,6 +1086,11 @@ m.register '$/status/click' { local diag = require 'provider.diagnostic' diag.clearAll(true) os.exit(0, true) + elseif result == 'Clear Node Cache' then + local vm = require 'vm' + vm.clearNodeCache() + collectgarbage() + collectgarbage() end end } |