From 7092ea5da5dd6660ffb30dfcfa9e147f27e38f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 28 Aug 2012 22:56:18 +0200 Subject: [PATCH] MDL-35109 Fix available_update_checker::cron_has_fresh_fetch() For the purpose of cron based fetching, recently fetched data are valid for 24 hours. --- lib/pluginlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pluginlib.php b/lib/pluginlib.php index 61d2a6ea609e0..b1139ebe8e0e9 100644 --- a/lib/pluginlib.php +++ b/lib/pluginlib.php @@ -1085,7 +1085,7 @@ protected function cron_has_fresh_fetch($now) { return true; } - if ($now - $recent > HOURSECS) { + if ($now - $recent > 24 * HOURSECS) { return false; }