# Plugin - cache invalidation in Query parser

**URL:** <https://discuss.elastic.co/t/plugin-cache-invalidation-in-query-parser/20704>\
**Category:** Elasticsearch\
**Created:** [November 12, 2014, 12:46pm UTC](https://discuss.elastic.co/t/plugin-cache-invalidation-in-query-parser/20704 "2014-11-12T12:46:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel\_Rog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pawel_rog/32/141223_2.png) [@Pawel\_Rog](https://discuss.elastic.co/u/Pawel_Rog)\
**Post date:** [November 12, 2014, 12:46pm UTC](https://discuss.elastic.co/t/plugin-cache-invalidation-in-query-parser/20704/1 "2014-11-12T12:46:55Z")

</div>

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](mailto: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](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](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:50am UTC](https://discuss.elastic.co/t/plugin-cache-invalidation-in-query-parser/20704/2 "2017-07-06T00:50:31Z")

</div>

Closed on July 6, 2017, 12:50am UTC


