function poormanscron_site_information_settings_submit in Poormanscron 5.2
Same name and namespace in other branches
- 6.2 poormanscron.module \poormanscron_site_information_settings_submit()
Form submit callback; clears the page cache if cron settings were changed.
File
- ./
poormanscron.module, line 143 - A module which runs Drupal cron jobs without the cron application.
Code
function poormanscron_site_information_settings_submit($form_id, $form_values) {
if (variable_get('cron_safe_threshold', 10800) != $form_values['cron_safe_threshold']) {
cache_clear_all('*', 'cache_page', TRUE);
}
}