mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-49329 admin: Call opcache_reset() after installing new plugin code
During the testing, I was experiencing weird behaviour - after a single plugin updated was installed, I ended up on admin/index.php?cache=1. I believe it was caused by the missing opcache_reset().
This commit is contained in:
parent
8726c07cd0
commit
da54cf11a4
1 changed files with 6 additions and 0 deletions
|
@ -1321,10 +1321,16 @@ class core_plugin_manager {
|
|||
if (!$this->unzip_plugin_file($zipfile, $target, $pluginname)) {
|
||||
$silent or $this->mtrace(get_string('error'));
|
||||
$silent or $this->mtrace('Unable to unzip '.$zipfile, PHP_EOL, DEBUG_DEVELOPER);
|
||||
if (function_exists('opcache_reset')) {
|
||||
opcache_reset();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
$silent or $this->mtrace($ok);
|
||||
}
|
||||
if (function_exists('opcache_reset')) {
|
||||
opcache_reset();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue