Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5dbb12
)
MDL-49572 cache: correctly purge cache on event
author
Marina Glancy
<marina@moodle.com>
Tue, 24 Mar 2015 03:10:16 +0000
(11:10 +0800)
committer
Marina Glancy
<marina@moodle.com>
Wed, 20 May 2015 06:07:58 +0000
(14:07 +0800)
cache/classes/helper.php
patch
|
blob
|
blame
|
history
diff --git
a/cache/classes/helper.php
b/cache/classes/helper.php
index
e272ee4
..
eca785f
100644
(file)
--- a/
cache/classes/helper.php
+++ b/
cache/classes/helper.php
@@
-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.