diff --git a/Plan/dependency-reduced-pom.xml b/Plan/dependency-reduced-pom.xml index ac42cb653..67d6f5663 100644 --- a/Plan/dependency-reduced-pom.xml +++ b/Plan/dependency-reduced-pom.xml @@ -27,7 +27,7 @@ maven-compiler-plugin - 3.7.0 + 3.7.0 1.8 1.8 @@ -96,7 +96,7 @@ maven-jar-plugin - 3.0.2 + 3.0.2 **/test/* @@ -109,7 +109,7 @@ org.jacoco jacoco-maven-plugin - 0.8.0 + 0.8.0 maven-checkstyle-plugin @@ -198,7 +198,7 @@ org.spigotmc spigot-api - 1.12.2-R0.1-SNAPSHOT + 1.12.2-R0.1-SNAPSHOT provided @@ -286,7 +286,7 @@ org.spongepowered spongeapi - 7.0.0 + 7.0.0 provided @@ -370,7 +370,7 @@ org.xerial sqlite-jdbc - 3.21.0.1 + 3.21.0.1 test diff --git a/Plan/src/main/java/com/djrapitops/plan/system/info/request/GenerateAnalysisPageRequest.java b/Plan/src/main/java/com/djrapitops/plan/system/info/request/GenerateAnalysisPageRequest.java index 75fff2a44..85ab5970a 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/info/request/GenerateAnalysisPageRequest.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/info/request/GenerateAnalysisPageRequest.java @@ -9,7 +9,7 @@ import com.djrapitops.plan.api.exceptions.connection.InternalErrorException; import com.djrapitops.plan.api.exceptions.connection.WebException; import com.djrapitops.plan.api.exceptions.database.DBOpException; import com.djrapitops.plan.data.store.containers.AnalysisContainer; -import com.djrapitops.plan.system.database.databases.Database; +import com.djrapitops.plan.system.cache.CacheSystem; import com.djrapitops.plan.system.info.InfoSystem; import com.djrapitops.plan.system.info.server.ServerInfo; import com.djrapitops.plan.system.webserver.pages.parsing.AnalysisPage; @@ -79,9 +79,7 @@ public class GenerateAnalysisPageRequest extends InfoRequestWithVariables implem try { runningAnalysis = true; UUID serverUUID = ServerInfo.getServerUUID(); - Database db = Database.getActive(); - - AnalysisContainer analysisContainer = new AnalysisContainer(db.fetch().getServerContainer(serverUUID)); + AnalysisContainer analysisContainer = CacheSystem.getInstance().getDataContainerCache().getAnalysisContainer(serverUUID); return new AnalysisPage(analysisContainer).toHtml(); } catch (DBOpException e) { if (!e.getCause().getMessage().contains("Connection is closed")) {