# The new profile API can tell if a query or part of a query hit the cache or not?

**URL:** <https://discuss.elastic.co/t/the-new-profile-api-can-tell-if-a-query-or-part-of-a-query-hit-the-cache-or-not/40081>\
**Category:** Elasticsearch\
**Created:** [January 26, 2016, 2:26am UTC](https://discuss.elastic.co/t/the-new-profile-api-can-tell-if-a-query-or-part-of-a-query-hit-the-cache-or-not/40081 "2016-01-26T02:26:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Post date:** [January 26, 2016, 2:26am UTC](https://discuss.elastic.co/t/the-new-profile-api-can-tell-if-a-query-or-part-of-a-query-hit-the-cache-or-not/40081/1 "2016-01-26T02:26:13Z")

</div>

that would be very useful

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 26, 2016, 9:48am UTC](https://discuss.elastic.co/t/the-new-profile-api-can-tell-if-a-query-or-part-of-a-query-hit-the-cache-or-not/40081/2 "2016-01-26T09:48:30Z")

</div>

Hi,

I am not aware that the query cache is currently included in the [profile API](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-profile.html).

Daniel

---

<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 5, 2017, 11:21pm UTC](https://discuss.elastic.co/t/the-new-profile-api-can-tell-if-a-query-or-part-of-a-query-hit-the-cache-or-not/40081/3 "2017-07-05T23:21:38Z")

</div>


