Fixed cache

This commit is contained in:
Andrea Cavalli 2018-05-09 22:30:15 +02:00
parent b6b1cec7d5
commit 43902161d2
3 changed files with 3 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -107,6 +107,9 @@ public class RulesManager {
} }
Utils.out.println(Utils.OUTPUTLEVEL_NODEBUG, "RulesManager", "Loaded all the rules successfully"); Utils.out.println(Utils.OUTPUTLEVEL_NODEBUG, "RulesManager", "Loaded all the rules successfully");
if (compiledSomething) { if (compiledSomething) {
if (cacheFilePath.toFile().exists()) {
cacheFilePath.toFile().delete();
}
Utils.zip(tDir.toString(), cacheFilePath.toString(), ""); Utils.zip(tDir.toString(), cacheFilePath.toString(), "");
Utils.out.println(Utils.OUTPUTLEVEL_NODEBUG, "RulesManager", "Cached the compiled rules"); Utils.out.println(Utils.OUTPUTLEVEL_NODEBUG, "RulesManager", "Cached the compiled rules");
} }