function update_status_cron in Update Status 5.2
Same name and namespace in other branches
- 5 update_status.module \update_status_cron()
Implementation of hook_cron().
File
- ./
update_status.module, line 516
Code
function update_status_cron() {
$frequency = variable_get('update_status_check_frequency', 'daily');
$interval = 60 * 60 * 24 * ($frequency == 'weekly' ? 7 : 1);
// Cron should check for updates if there is no update data cached
// or if the configured update interval has elapsed.
if (!_update_status_cache_get('update_status_available_releases') || time() - variable_get('update_status_last', 0) > $interval) {
update_status_refresh();
_update_status_cron_notify();
}
}