let the database be cached ...

This commit is contained in:
Xephi 2014-09-19 02:18:04 +02:00
parent 2b02f130af
commit 312410c9de

View File

@ -226,13 +226,13 @@ public class AuthMe extends JavaPlugin {
break; break;
} }
dataManager = new DataManager(this, database);
dataManager.start();
if (Settings.isCachingEnabled) { if (Settings.isCachingEnabled) {
database = new CacheDataSource(this, database); database = new CacheDataSource(this, database);
} }
dataManager = new DataManager(this, database);
dataManager.start();
// Setup API // Setup API
api = new API(this, database); api = new API(this, database);