SOLR-2181: Add HTTP Caching status to admin ui

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1025669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2010-10-20 18:40:56 +00:00
parent 405cb198a0
commit 19244901b0
2 changed files with 5 additions and 0 deletions

View File

@ -115,4 +115,6 @@
String cwd=System.getProperty("user.dir");
String solrHome= solrConfig.getInstanceDir();
boolean cachingEnabled = !solrConfig.getHttpCachingConfig().isNever304();
%>

View File

@ -39,3 +39,6 @@ var host_name="<%= hostname %>"
<%= hostname %>:<%= port %><br/>
cwd=<%= cwd %> SolrHome=<%= solrHome %>
<br/>
<%String cachingStatus = " HTTP caching is "; %>
<%= cachingEnabled ? cachingStatus + " ON": cachingStatus + " OFF" %>