Valandur / Web-API

RESTful web server for Minecraft Sponge including an admin panel
https://valandur.github.io/Web-API/
MIT License
66 stars 17 forks source link

Dynmap and WebAPI causes extremely long loading times for the server #128

Closed AlienXAXS closed 5 years ago

AlienXAXS commented 5 years ago

Hello, I noticed that my server is taking longer and longer to startup, looking at process monitor i can see that every single dynmap png file for the tiles is being scanned by Web-API, i assume it's this line:

https://github.com/Valandur/Web-API/blob/32600e64a00ce3ed35167edf677d7493e565399a/webapi-sponge/src/main/java/valandur/webapi/cache/CacheService.java#L550

Unsure how to fix this personally, but is it possible to explicit exclude the ".\dynmap" directory from this .jar scan?

To give you an idea of how long it's adding to my servers boot time: The file search started at 22:48:47, it finished at 23:24:44.