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:
c106341
)
MDL-48210 plugin_manager: Invalidate caches after fetching updates info
author
David Mudrák
<david@moodle.com>
Tue, 18 Nov 2014 22:37:06 +0000
(23:37 +0100)
committer
David Mudrák
<david@moodle.com>
Mon, 24 Nov 2014 10:44:02 +0000
(11:44 +0100)
lib/classes/update/checker.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/classes/update/checker.php
b/lib/classes/update/checker.php
index
b6ad407
..
38e9d55
100644
(file)
--- a/
lib/classes/update/checker.php
+++ b/
lib/classes/update/checker.php
@@
-116,9
+116,14
@@
class checker {
* @throws checker_exception
*/
public function fetch() {
+
$response = $this->get_response();
$this->validate_response($response);
$this->store_response($response);
+
+ // We need to reset plugin manager's caches - the currently existing
+ // singleton is not aware of eventually available updates we just fetched.
+ \core_plugin_manager::reset_caches();
}
/**