MC-API / Issues

Public issue tracker for mc-api.net
https://mc-api.net
2 stars 0 forks source link

Proactive cache idea #54

Closed njb-said closed 7 years ago

njb-said commented 7 years ago

So, I just had a weird idea, proactive caching.

When someone requests info about a server, it's cached for future requests currently. I might make it so when an item expires from cache the server re-requests it and re-caches it automatically. To avoid the cache growing too big (although that wouldn't be a problem really) if a route doesn't get used after so long it is no longer monitored.

Not sure if I'll do this or not but it's something I'll look into.

njb-said commented 7 years ago

Implemented a lite version of this to see how it goes.