# Disabling cache

**URL:** https://discuss.elastic.co/t/disabling-cache/4969
**Category:** Elasticsearch
**Created:** [July 26, 2011, 11:30pm UTC](https://discuss.elastic.co/t/disabling-cache/4969 "2011-07-26T23:30:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Adrian\_Gaudebert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrian_gaudebert/32/3161_2.png) [@Adrian\_Gaudebert](https://discuss.elastic.co/u/Adrian_Gaudebert)
#### Post date: [July 26, 2011, 11:30pm UTC](https://discuss.elastic.co/t/disabling-cache/4969/1 "2011-07-26T23:30:18Z")

</div>

Hi,

Is there a way to totally disable cache in ElasticSearch? To make sure every  
query runs as if it was the first time? I would need it to run some  
performance tests.

Thanks!

--  
Adrian Gaudebert  
WebDev Intern @ Mozilla  
[http://adrian.gaudebert.fr](http://adrian.gaudebert.fr)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [July 27, 2011, 4:18am UTC](https://discuss.elastic.co/t/disabling-cache/4969/2 "2011-07-27T04:18:12Z")

</div>

Which caches are we talking about? The field data cache (the one for facets  
/ sorting) is expensive to build, so running a performance tests without it  
will bring the system to a crawl... (makes little sense to run it). The only  
other cache in elasticsearch is the filter cache, which you can disable by  
setting: index.cache.filter.type to none.

On Wed, Jul 27, 2011 at 2:30 AM, Adrian Gaudebert \<  
[adrian.gaudebert@gmail.com](mailto:adrian.gaudebert@gmail.com)\> wrote:

> Hi,
> 
> Is there a way to totally disable cache in Elasticsearch? To make sure  
> every query runs as if it was the first time? I would need it to run some  
> performance tests.
> 
> Thanks!
> 
> --  
> Adrian Gaudebert  
> WebDev Intern @ Mozilla  
> [http://adrian.gaudebert.fr](http://adrian.gaudebert.fr)

---

<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, 3:59am UTC](https://discuss.elastic.co/t/disabling-cache/4969/3 "2017-07-06T03:59:10Z")

</div>


