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>
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');
}
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]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'); } [/code]
Ich möchte eine benutzerdefinierte Intervallklasse in kleinere Unterintervalen teilen. Die Anzahl der Subintervalle hängt von der Anzahl der angegebenen Argumente ab. class interval
{
public:...
Ich habe ein Projekt, bei dem bestimmte Funktionen des Codes die folgenden VM -Optionen in der Intellij -Idee manuell hinzugefügt werden:
--add-opens java.base/java.time=ALL-UNNAMED
--add-opens...
Ich arbeite am folgenden Tags -Selektor in JavaScript, ohne ein Plugin zu verwenden. -Code >
const tagsList = document.querySelector( .tags-list )
const tagActions = document.getElementById(...
Ich arbeite am folgenden Tags -Selektor in JavaScript, ohne ein Plugin zu verwenden. -Code >
const tagsList = document.querySelector( .tags-list )
const tagActions = document.getElementById(...
Ich arbeite am folgenden Tags -Selektor in JavaScript, ohne ein Plugin zu verwenden. -Code >
const tagsList = document.querySelector( .tags-list )
const tagActions = document.getElementById(...