MDL-35109 Fix available_update_checker::cron_has_fresh_fetch()
authorDavid Mudrák <david@moodle.com>
Tue, 28 Aug 2012 20:56:18 +0000 (22:56 +0200)
committerDavid Mudrák <david@moodle.com>
Tue, 28 Aug 2012 20:59:33 +0000 (22:59 +0200)
For the purpose of cron based fetching, recently fetched data are valid
for 24 hours.

lib/pluginlib.php

index 61d2a6e..b1139eb 100644 (file)
@@ -1085,7 +1085,7 @@ class available_update_checker {
             return true;
         }
 
             return true;
         }
 
-        if ($now - $recent > HOURSECS) {
+        if ($now - $recent > 24 * HOURSECS) {
             return false;
         }
 
             return false;
         }