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