From 0d860bfca706a9763e12ef06138b3d55b70f4a69 Mon Sep 17 00:00:00 2001 From: wizjany Date: Thu, 6 Feb 2020 18:16:55 -0500 Subject: [PATCH] Change bypass cache to expireAfterWrite. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This hasn't caused issues for the past 5 years but I guess ¯\_(ツ)_/¯ --- .../com/sk89q/worldguard/session/AbstractSessionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldguard-core/src/main/java/com/sk89q/worldguard/session/AbstractSessionManager.java b/worldguard-core/src/main/java/com/sk89q/worldguard/session/AbstractSessionManager.java index 99767904..5ac3edc7 100644 --- a/worldguard-core/src/main/java/com/sk89q/worldguard/session/AbstractSessionManager.java +++ b/worldguard-core/src/main/java/com/sk89q/worldguard/session/AbstractSessionManager.java @@ -59,7 +59,7 @@ public abstract class AbstractSessionManager implements SessionManager { private final LoadingCache bypassCache = CacheBuilder.newBuilder() .maximumSize(1000) - .expireAfterAccess(2, TimeUnit.SECONDS) + .expireAfterWrite(2, TimeUnit.SECONDS) .build(CacheLoader.from(tuple -> tuple.getPlayer().hasPermission("worldguard.region.bypass." + tuple.getWorld().getName())));