Преглед изворни кода

Merge pull request #17162 from colings86/enhancement/enableRequestCacheDefault

Enable the indices request cache by default
Colin Goodheart-Smithe пре 9 година
родитељ
комит
c62eff0ac9

+ 1 - 1
core/src/main/java/org/elasticsearch/indices/IndicesRequestCache.java

@@ -70,7 +70,7 @@ public final class IndicesRequestCache extends AbstractComponent implements Remo
      * since we are checking on the cluster state IndexMetaData always.
      */
     public static final Setting<Boolean> INDEX_CACHE_REQUEST_ENABLED_SETTING =
-        Setting.boolSetting("index.requests.cache.enable", false, Property.Dynamic, Property.IndexScope);
+        Setting.boolSetting("index.requests.cache.enable", true, Property.Dynamic, Property.IndexScope);
     public static final Setting<ByteSizeValue> INDICES_CACHE_QUERY_SIZE =
         Setting.byteSizeSetting("indices.requests.cache.size", "1%", Property.NodeScope);
     public static final Setting<TimeValue> INDICES_CACHE_QUERY_EXPIRE =