# Elasticsearch Cache

**URL:** <https://discuss.elastic.co/t/elasticsearch-cache/76202>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 11:27am UTC](https://discuss.elastic.co/t/elasticsearch-cache/76202 "2017-02-23T11:27:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emrah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emrah/32/17657_2.png) [@Emrah](https://discuss.elastic.co/u/Emrah)\
**Post date:** [February 23, 2017, 11:27am UTC](https://discuss.elastic.co/t/elasticsearch-cache/76202/1 "2017-02-23T11:27:16Z")

</div>

Does elasticsearch invalidate aggregation cache every single doc update ? Our indexer service run all day long in every 5 mins and tracks the data in relational database and updates changed docs in ElasticSearch. If on every update Elasticsearch invalidates cache, the cache mechanism on elasticsearch doesnt seem to work for us. We could change indexer service times by this case true or false.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 24, 2017, 9:39am UTC](https://discuss.elastic.co/t/elasticsearch-cache/76202/2 "2017-02-24T09:39:40Z")

</div>

It invalidates it when a segment is changed, ie a new/deleted doc or a merge.

---

<div class="post-metadata">

**Author:** ![Emrah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emrah/32/17657_2.png) [@Emrah](https://discuss.elastic.co/u/Emrah)\
**Post date:** [February 24, 2017, 10:54am UTC](https://discuss.elastic.co/t/elasticsearch-cache/76202/3 "2017-02-24T10:54:22Z")

</div>

Thanks @warkolm. We need to increase update times then.

---

<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:** [March 24, 2017, 10:54am UTC](https://discuss.elastic.co/t/elasticsearch-cache/76202/4 "2017-03-24T10:54:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
