mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Update manage_admin.php
This commit is contained in:
parent
d3e5e66a10
commit
a2223f6f04
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ switch ($mode) {
|
||||||
$this->response['template_cache_html'] = '<span class="seed bold">' . $lang['ALL_TEMPLATE_CLEARED'] . '</span>';
|
$this->response['template_cache_html'] = '<span class="seed bold">' . $lang['ALL_TEMPLATE_CLEARED'] . '</span>';
|
||||||
break;
|
break;
|
||||||
case 'indexer':
|
case 'indexer':
|
||||||
|
if ($bb_cfg['search_engine_type'] != 'sphinx') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
exec("indexer --config {$bb_cfg['sphinx_config_path']} --all --rotate", $result);
|
exec("indexer --config {$bb_cfg['sphinx_config_path']} --all --rotate", $result);
|
||||||
|
|
||||||
if (!is_file($bb_cfg['sphinx_config_path'] . ".log")) {
|
if (!is_file($bb_cfg['sphinx_config_path'] . ".log")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue