MDL-49572 cache: correctly purge cache on event

This commit is contained in:
Marina Glancy
2015-05-20 14:06:43 +08:00
parent 18202cbed7
commit 4b74b4791f
+2
View File
@@ -318,6 +318,8 @@ class cache_helper {
$definitionkey = $definition->get_component().'/'.$definition->get_area();
if (isset($inuse[$definitionkey])) {
$inuse[$definitionkey]->purge();
} else {
cache::make($definition->get_component(), $definition->get_area())->purge();
}
// We should only log events for application and session caches.