Skip to content
Snippets Groups Projects
Commit 7a3b481c authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

disable opcache (for this request) when updating plugin, fixes #569

Closes #569

Merge request studip/studip!866
parent 97c83785
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,9 @@ class PluginAdministration
rmdirr($plugindir_old);
rename($plugindir, $plugindir_old);
}
// avoid loading old version of the class from opcache (see ticket #569)
ini_set('opcache.enable', 0);
}
// move directory to final destination
......@@ -119,10 +122,6 @@ class PluginAdministration
rename($tmpplugindir, $plugindir);
// wait until opcache.revalidate_freq expires
$revalidate_freq = min(ini_get('opcache.revalidate_freq'), 10);
sleep($revalidate_freq);
// create database schema if needed
$this->createDBSchema($plugindir, $manifest, $pluginregistered);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment