Commit f931c720050e09837a3abdde0adea33282ed657d
1 parent
354cf705
KTS-3786
"Indexer status dashlet must offer refresh link as before" Fixed. Committed By: Conrad Vermeulen Reviewed By: Megan git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9515 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
7 additions
and
5 deletions
search2.php
| @@ -263,7 +263,9 @@ class SearchDispatcher extends KTStandardDispatcher { | @@ -263,7 +263,9 @@ class SearchDispatcher extends KTStandardDispatcher { | ||
| 263 | 263 | ||
| 264 | function do_refreshLuceneStats() | 264 | function do_refreshLuceneStats() |
| 265 | { | 265 | { |
| 266 | - session_unregister('LuceneStats'); | 266 | + $indexer = Indexer::get(); |
| 267 | + $indexer->updateIndexStats(); | ||
| 268 | + | ||
| 267 | redirect(KTUtil::kt_url().'/dashboard.php'); | 269 | redirect(KTUtil::kt_url().'/dashboard.php'); |
| 268 | } | 270 | } |
| 269 | 271 |
templates/ktcore/search2/lucene_statistics.smarty
| @@ -69,11 +69,11 @@ toggle.style.display = 'none'; | @@ -69,11 +69,11 @@ toggle.style.display = 'none'; | ||
| 69 | </div> | 69 | </div> |
| 70 | 70 | ||
| 71 | </td><td>{$stats.queueCoverage}</td></tr> | 71 | </td><td>{$stats.queueCoverage}</td></tr> |
| 72 | - | ||
| 73 | </table> | 72 | </table> |
| 74 | - | ||
| 75 | -<table> | ||
| 76 | - | 73 | +<table width="100%"> |
| 74 | +<tr> | ||
| 75 | +<td align=right><a href="{rootUrl}/search2.php?action=refreshLuceneStats">{i18n}Refresh{/i18n}</a></td> | ||
| 76 | +</tr> | ||
| 77 | {if $stats.noOptimisation} | 77 | {if $stats.noOptimisation} |
| 78 | <tr><td valign=top>*<td><i>{i18n}To get the best performance out of Document Indexer, the indexes must be optimised periodically. This is managed by a background task. Please see the KnowledgeTree Administrator's Manual for more information.{/i18n} | 78 | <tr><td valign=top>*<td><i>{i18n}To get the best performance out of Document Indexer, the indexes must be optimised periodically. This is managed by a background task. Please see the KnowledgeTree Administrator's Manual for more information.{/i18n} |
| 79 | {/if} | 79 | {/if} |