I have a Ruby webapp that caches some frequently used information in a lightweight layer, but there are times at which I want to reset the cache without restarting the entire process.
Before I started using Unicorn, I had a known list of ports that I could send a special HTTP request to reset the cache on each instance. However, under Unicorn, the Unicorn process handles all the HTTP requests and passes them off to the children processes individually.
Under this model, is there a simple mechanism to send a message to each of the launched instances to reset their caches?