mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Add option to disable background caching
This commit is contained in:
parent
0e7a6d7a62
commit
429f5e55c3
2 changed files with 7 additions and 1 deletions
|
@ -353,7 +353,10 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<
|
||||||
}
|
}
|
||||||
|
|
||||||
impromptuPipeline.storeImmediately("*", DBFunc.EVERYONE);
|
impromptuPipeline.storeImmediately("*", DBFunc.EVERYONE);
|
||||||
this.startUuidCaching(sqLiteUUIDService, cacheUUIDService);
|
|
||||||
|
if (Settings.UUID.BACKGROUND_CACHING_ENABLED) {
|
||||||
|
this.startUuidCaching(sqLiteUUIDService, cacheUUIDService);
|
||||||
|
}
|
||||||
|
|
||||||
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
|
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
|
||||||
new Placeholders().register();
|
new Placeholders().register();
|
||||||
|
|
|
@ -257,6 +257,9 @@ public class Settings extends Config {
|
||||||
public static boolean LEGACY_DATABASE_SUPPORT = true;
|
public static boolean LEGACY_DATABASE_SUPPORT = true;
|
||||||
@Comment("Whether or not PlotSquared should return Unknown if it fails to fulfill a request")
|
@Comment("Whether or not PlotSquared should return Unknown if it fails to fulfill a request")
|
||||||
public static boolean UNKNOWN_AS_DEFAULT = true;
|
public static boolean UNKNOWN_AS_DEFAULT = true;
|
||||||
|
@Comment("Whether or not automatic background caching should be enabled. It is HIGHLY recommended to keep this turned on."
|
||||||
|
+ " This should only be disabled if the server has a very large number of plots (>100k)")
|
||||||
|
public static boolean BACKGROUND_CACHING_ENABLED = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue