Setup vc-cache in the data folder (#598)

Change-Id: I6a4c1177c4c4b052fff6df9076fcb34c0001cd58
diff --git a/pom.xml b/pom.xml
index 906e21e..d620be5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
 		<jetty.version>11.0.19</jetty.version>
 		<flyway.version>10.6.0</flyway.version>
 		<log4j.version>2.22.1</log4j.version>
-		<krill.version>[0.62.2,)</krill.version>
+		<krill.version>[0.62.3,)</krill.version>
 		<koral.version>[0.42,)</koral.version>
 	</properties>
 	<profiles>
diff --git a/src/main/java/de/ids_mannheim/korap/init/Initializator.java b/src/main/java/de/ids_mannheim/korap/init/Initializator.java
index e908737..17782d8 100644
--- a/src/main/java/de/ids_mannheim/korap/init/Initializator.java
+++ b/src/main/java/de/ids_mannheim/korap/init/Initializator.java
@@ -6,7 +6,9 @@
 import org.springframework.beans.factory.annotation.Autowired;
 
 import de.ids_mannheim.korap.annotation.FreeResourceParser;
+import de.ids_mannheim.korap.cache.VirtualCorpusCache;
 import de.ids_mannheim.korap.config.FullConfiguration;
+import de.ids_mannheim.korap.config.KustvaktConfiguration;
 import de.ids_mannheim.korap.config.NamedVCLoader;
 import de.ids_mannheim.korap.constant.OAuth2Scope;
 import de.ids_mannheim.korap.exceptions.KustvaktException;
@@ -37,6 +39,8 @@
     public Initializator () {}
 
     public void init () throws IOException, QueryException, KustvaktException {
+        VirtualCorpusCache.CACHE_LOCATION = KustvaktConfiguration.DATA_FOLDER
+                + "/vc-cache";
         setInitialAccessScope();
         resourceParser.run();
 
@@ -50,6 +54,8 @@
     }
 
     public void initTest () throws IOException, KustvaktException {
+        VirtualCorpusCache.CACHE_LOCATION = KustvaktConfiguration.DATA_FOLDER
+                + "/vc-cache";
         setInitialAccessScope();
         if (config.createInitialSuperClient()) {
             clientService.createInitialTestSuperClient();