# Refresh/flush/clear\_cache API?

**URL:** <https://discuss.elastic.co/t/refresh-flush-clear-cache-api/83676>\
**Category:** Elasticsearch\
**Created:** [April 26, 2017, 10:15am UTC](https://discuss.elastic.co/t/refresh-flush-clear-cache-api/83676 "2017-04-26T10:15:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilmchaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunilmchaudhari/32/9475_2.png) [@sunilmchaudhari](https://discuss.elastic.co/u/sunilmchaudhari)\
**Post date:** [April 26, 2017, 10:15am UTC](https://discuss.elastic.co/t/refresh-flush-clear-cache-api/83676/1 "2017-04-26T10:15:26Z")

</div>

Hi,  
I have elastic-HQ for the diagnosis of ES cluster.  
I do manual refresh/flush/clear\_cache from HQ.

Can I set up cron job to execute these API calls?

Does it helps to improve health anymore?

Any other automatic option to improve health parameters?

br,  
Sunil

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 26, 2017, 2:39pm UTC](https://discuss.elastic.co/t/refresh-flush-clear-cache-api/83676/2 "2017-04-26T14:39:52Z")

</div>

I've never had to automatically refresh or flush. Both are automatically called on schedules. I have heard of folks automatically clearing caches but that was a thing mostly from the 1.x days. I haven't heard of it as thing in 5.x but I could be wrong.

---

<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:** [May 24, 2017, 2:49pm UTC](https://discuss.elastic.co/t/refresh-flush-clear-cache-api/83676/3 "2017-05-24T14:49:19Z")

</div>

Closed on May 24, 2017, 2:49pm UTC

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