mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-49572 cache: correctly purge cache on event
This commit is contained in:
parent
b5dbb126f9
commit
2d1164800c
2
cache/classes/helper.php
vendored
2
cache/classes/helper.php
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user