Commit 308537a0e09a7372a4908aabbe365227d7e1a98c
1 parent
1894283f
Merged in...
KTS-3786 "Indexer status dashlet must offer refresh link as before" Fixed. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.4-Release-Branch@9525 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 | 263 | |
| 264 | 264 | function do_refreshLuceneStats() |
| 265 | 265 | { |
| 266 | - session_unregister('LuceneStats'); | |
| 266 | + $indexer = Indexer::get(); | |
| 267 | + $indexer->updateIndexStats(); | |
| 268 | + | |
| 267 | 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 | 69 | </div> |
| 70 | 70 | |
| 71 | 71 | </td><td>{$stats.queueCoverage}</td></tr> |
| 72 | - | |
| 73 | 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 | 77 | {if $stats.noOptimisation} |
| 78 | 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 | 79 | {/if} | ... | ... |