Hi,
It’s been a while since my last confession :-).
I’m opening this discussion since I’m now migrating my code from .Net 4.5 to .Net Core which should be cross platform (I should’ve used Java to begin with but I’m too stubborn I guess).
When running on windows I use windows service to run the Java process so that the GH process will always be up.
This means that I need to stop the service, update the cache and start the service again every time I need to update the data.
This is less than ideal.
It would be ideal if I could send a request to GH to either change the cache location or refresh current cache.
The current work around we use is to create a new GH cache in a different folder while GH is running, stop GH window service, swap between the cache folders and start GH again in order to reduce the down time as much as possible.
Is there a better way to do it using the HTTP interface? I’ll be surprised if I’m the only one who needs this feature…
Just for reference I use elastic search (that I update on the same time basis) that also uses java and HTTP and everything is possible using the HTTP API which I think is a far better cross platform and cross language approach.