public function actionRebuild()
{
$this->assertAdminPermission('rebuildCache');
/* @var $searchModel XenForo_Model_Search */
$searchModel = XenForo_Model::create('XenForo_Model_Search');
$searchContentTypeOptions = array();
foreach ($searchModel->getSearchContentTypes() AS $contentType => $null)
{
$searchContentTypeOptions[$contentType] = new XenForo_Phrase('content_type_' . $contentType);
}
$viewParams = array(
'searchContentTypes' => $searchContentTypeOptions
);
return $this->responseView('XenForo_ViewAdmin_Tools_Rebuild', 'tools_rebuild', $viewParams);
}