aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/maintenance.php9
-rw-r--r--admin/template/goto/maintenance.tpl1
2 files changed, 10 insertions, 0 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index ba6b718bb..9d991d924 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -100,6 +100,15 @@ DELETE
$c13y->maintenance();
break;
}
+ case 'search' :
+ {
+ $query = '
+DELETE
+ FROM '.SEARCH_TABLE.'
+;';
+ pwg_query($query);
+ break;
+ }
case 'compiled-templates' :
{
$template->delete_compiled_templates();
diff --git a/admin/template/goto/maintenance.tpl b/admin/template/goto/maintenance.tpl
index b37ec864e..908e62471 100644
--- a/admin/template/goto/maintenance.tpl
+++ b/admin/template/goto/maintenance.tpl
@@ -14,6 +14,7 @@
<li><a href="{$U_MAINT_HISTORY_SUMMARY}" onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'purge history summary'|@translate}</a></li>
<li><a href="{$U_MAINT_SESSIONS}" {$TAG_INPUT_ENABLED}>{'purge sessions'|@translate}</a></li>
<li><a href="{$U_MAINT_FEEDS}" {$TAG_INPUT_ENABLED}>{'purge never used notification feeds'|@translate}</a></li>
+ <li><a href="{$U_MAINT_SEARCH}"onclick="return confirm('{'Are you sure?'|@translate}');" {$TAG_INPUT_ENABLED}>{'Purge search history'|@translate}</a></li>
<li><a href="{$U_MAINT_COMPILED_TEMPLATES}" {$TAG_INPUT_ENABLED}>{'Purge compiled templates'|@translate}</a></li>
</ul>