MDL-32985 cron: Fixing related problem with setting of lastnotifyfailure
authorEric Merrill <merrill@oakland.edu>
Wed, 6 Jun 2012 16:04:03 +0000 (12:04 -0400)
committerEric Merrill <merrill@oakland.edu>
Wed, 6 Jun 2012 16:04:03 +0000 (12:04 -0400)
commit54c2756ca21e74ad89a5c922e47287477f3add55
treeb7ad27e0bbc8bb5ed3c42e342b146b3b54b5fd5c
parent4a5be0e94931e1f8a80524ad60450fe4a5ec4c07
MDL-32985 cron: Fixing related problem with setting of lastnotifyfailure

Because of a flaw in the logic, lastnotifyfailure was not set unless
there was a failure. This means that after 1 hour of no failures, the
function would execute every cron cycle, which has a pretty high cost
on large sites.
lib/cronlib.php