From 76fa63118415df4b6d60925dec54b07e8cc01297 Mon Sep 17 00:00:00 2001 From: Xephi Date: Tue, 3 Nov 2015 15:23:02 +0100 Subject: [PATCH] Disable Hikari Cache definitively --- src/main/java/fr/xephi/authme/datasource/MySQL.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/fr/xephi/authme/datasource/MySQL.java b/src/main/java/fr/xephi/authme/datasource/MySQL.java index 8fdc2371..940d9263 100644 --- a/src/main/java/fr/xephi/authme/datasource/MySQL.java +++ b/src/main/java/fr/xephi/authme/datasource/MySQL.java @@ -100,13 +100,7 @@ public class MySQL implements DataSource { config.setJdbcUrl("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database); config.setUsername(this.username); config.setPassword(this.password); - if (Settings.isMySQLWebsite) { - config.addDataSourceProperty("cachePrepStmts", "false"); - } else { - config.addDataSourceProperty("cachePrepStmts", "true"); - config.addDataSourceProperty("prepStmtCacheSize", "250"); - config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048"); - } + config.addDataSourceProperty("cachePrepStmts", "false"); config.addDataSourceProperty("autoReconnect", false); config.setInitializationFailFast(true); // Don't start the plugin if the database is unavailable config.setMaxLifetime(180000); // 3 Min