Ist es möglich, dem Intervall von Poormanscron in Drupal weitere Optionen hinzuzufügen?Php

PHP-Programmierer chatten hier
Anonymous
 Ist es möglich, dem Intervall von Poormanscron in Drupal weitere Optionen hinzuzufügen?

Post by Anonymous »

Grundsätzlich muss ich Cron häufiger als jede Stunde ausführen, aber die Optionen in den Standortinformationen liegen nur bis zu 1 Stunde. Gibt es ohnehin, um dies zu umgehen oder weitere Optionen hinzuzufügen, damit Cron stattdessen alle 30 Minuten automatisch ausgeführt wird? < /P>

Ich habe versucht Die Datei des Pooranscron -Moduls, aber sie schienen sowieso nicht zu nehmen. < /p>

Code: Select all

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 [url=@status-report-url]status report page[/url].', array('@status-report-url' => url('admin/reports/status'))),
);
$form['buttons'] += array('#weight' => 100);
array_unshift($form['#submit'], 'poormanscron_site_information_settings_submit');
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post