MDL-37263 cache: fixed event invalidation coding error

This commit is contained in:
Sam Hemelryk 2012-12-21 10:50:07 +13:00
parent 0dc5a532ec
commit 9966db51f0

View File

@ -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