Permalink
Browse files

MDL-37263 cache: fixed event invalidation coding error

  • Loading branch information...
1 parent 0dc5a53 commit 9966db51f0d1e25fc459b3789b3b75afdb9403d5 Sam Hemelryk committed Dec 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 cache/classes/loaders.php
@@ -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

0 comments on commit 9966db5

Please sign in to comment.