Skip to content
Browse files

MDL-37263 cache: fixed event invalidation coding error

  • Loading branch information...
1 parent 322af44 commit e03782efddf11b05d044f9a27f86bf5693e82b45 @samhemelryk samhemelryk committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 cache/classes/loaders.php
View
4 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 e03782e

Please sign in to comment.
Something went wrong with that request. Please try again.