Skip to content
Permalink
Browse files
Change bypass cache to expireAfterWrite.
This hasn't caused issues for the past 5 years but I guess ¯\_(ツ)_/¯
  • Loading branch information
wizjany committed Feb 6, 2020
1 parent 6f6125f commit 0d860bfca706a9763e12ef06138b3d55b70f4a69
Showing 1 changed file with 1 addition and 1 deletion.
@@ -59,7 +59,7 @@ public abstract class AbstractSessionManager implements SessionManager {

private final LoadingCache<WorldPlayerTuple, Boolean> 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())));

0 comments on commit 0d860bf

Please sign in to comment.