Wednesday, March 30, 2011

Disable / Enable HTTP Caching Solr

Sometimes it is better to disable the HTTP caching on Solr, especially when you are updating the index frequently and want to see the changes to the index instantly. To disable HTTP caching find the following lines in SolrConfig.xml

<!-- <httpCaching never304="true"> -->
<httpCaching lastModifiedFrom="openTime" etagSeed="Solr">


Now uncomment the first line "Caching never304...." and comment the next "Caching lastModifiedFrom=...."
Then restart Solr.

No comments:

Post a Comment