From f426c0208fedda0bd1a2d73bcb0f339d7a63c2b6 Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Fri, 15 Sep 2017 09:52:51 +0200 Subject: [PATCH] chore(cache): clear the cache before filling it Closes https://github.com/FXServer-ESX/fxserver-esx_whitelist/issues/2 --- server/main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/main.lua b/server/main.lua index 51a62aac..65185a32 100644 --- a/server/main.lua +++ b/server/main.lua @@ -5,6 +5,8 @@ function loadWhiteList () 'SELECT * FROM whitelist', {}, function (identifiers) + Whitelist = {} + for i=1, #identifiers, 1 do table.insert(WhiteList, tostring(identifiers[i].identifier)) end