Skip to content

Commit

Permalink
MDL-35109 Fix available_update_checker::cron_has_fresh_fetch()
Browse files Browse the repository at this point in the history
For the purpose of cron based fetching, recently fetched data are valid
for 24 hours.
  • Loading branch information
mudrd8mz committed Aug 28, 2012
1 parent 720f7c1 commit 7092ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pluginlib.php
Expand Up @@ -1085,7 +1085,7 @@ protected function cron_has_fresh_fetch($now) {
return true;
}

if ($now - $recent > HOURSECS) {
if ($now - $recent > 24 * HOURSECS) {
return false;
}

Expand Down

0 comments on commit 7092ea5

Please sign in to comment.