Closed Maxopoly closed 4 years ago
Hmm, they keep them in one of those Guava caches with a timeout of 60 minutes
public static final LoadingCache<String, GameProfile> skinCache = CacheBuilder.newBuilder()
.maximumSize( 5000 )
.expireAfterAccess( 60, TimeUnit.MINUTES )
.build( new CacheLoader<String, GameProfile>()
and it's always sync. Guess we'll have to reverse migrate, restart with that and revert all git changes then to go back to the original state with pearls only.
Loading the Hjaltland vault froze the server for about 30 seconds due to it doing a lookup for the skin in sync.
Not sure how caching of skins works. If its persistent for the entire runtime, it'd be good enough to create a skull for them once on startup. If that's not the case and they're discarded every X minutes, then we likely need to revert the skull thing entirely