Skip to content

Commit

Permalink
Merge branch 'wip-MDL-37263-m24' of git://github.com/samhemelryk/mood…
Browse files Browse the repository at this point in the history
…le into MOODLE_24_STABLE
  • Loading branch information
danpoltawski committed Dec 24, 2012
2 parents b61dd8b + e03782e commit d71b142
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cache/classes/loaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,10 @@ public function __construct(cache_definition $definition, cache_store $store, $l
$todelete = array();
// Iterate the returned data for the events.
foreach ($events as $event => $keys) {
if ($keys === false) {
// There are no keys.
continue;
}
// Look at each key and check the timestamp.
foreach ($keys as $key => $timestamp) {
// If the timestamp of the event is more than or equal to the last invalidation (happened between the last
Expand Down

0 comments on commit d71b142

Please sign in to comment.