基本上我需要比每小时更频繁地运行cron,但站点信息中的选项只能低至1小时。反正有没有绕过这个或添加更多选项让cron自动运行说每30分钟一次?
我已经尝试使用poormanscron模块文件在下面的函数中添加更多数组但是它们似乎无论如何都没有。
function poormanscron_form_system_site_information_settings_alter(&$form, &$form_state)
{
$form['cron_safe_threshold'] = array(
'#type' => 'select',
'#title' => t('Automatically run cron'),
'#default_value' => variable_get('cron_safe_threshold', 10800),
'#options' => array(0 => t('Never')) + drupal_map_assoc(array(1800, 3600, 10800, 21600, 43200, 86400, 604800), 'format_interval'),
'#description' => t('When enabled, the site will check whether cron has been run in the configured interval and automatically run it upon the next page request. For more information visit the <a href="@status-report-url">status report page</a>.', array('@status-report-url' => url('admin/reports/status'))),
);
$form['buttons'] += array('#weight' => 100);
array_unshift($form['#submit'], 'poormanscron_site_information_settings_submit');
}