Description
There is no elegant way to turn off caches (filterCache, queryResultCache etc) from the solrconfig. When I tried setting size and initialSize to zero, it resulted in caches of size 2. Here is the code that overrides setting zero sized cache.
Only way to disable cache right now is by removing cache configs from the solrConfig, but we can simply provide an attribute to disable cache, so that we can override it using a system property.