Plugin - cache invalidation in Query parser

Hi,
I implemented query parser plugin. While query is parsed a few costly
operations have to be performed. I decided to cache sub-results of this
operation and reuse it when needed. This works fine.

The problem begins when cache should be invalidated. I built REST API
(BaseRestAction) for cache invalidation and registered it. When API method
is called it should clear cache on all ES nodes ... not only one.

Do you have any idea how I can distribute "cache invalidation operation"
across all ES nodes?

--
Paweł Róg

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAF9ZkbNKnyOxXo-z0Q252T8M6KsLy%3DiiD85%2Bb-NNq7uKEWSK7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.