mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-37263 cache: fixed event invalidation coding error
This commit is contained in:
parent
0dc5a532ec
commit
9966db51f0
4
cache/classes/loaders.php
vendored
4
cache/classes/loaders.php
vendored
@ -1093,6 +1093,10 @@ class cache_application extends cache implements cache_loader_with_locking {
|
||||
$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
|
||||
|
Loading…
x
Reference in New Issue
Block a user