purge cache only once on install

this is not a extension specific cache but a global one. no need to
purge for each installed extension
This commit is contained in:
Andreas Gohr 2014-01-06 21:29:52 +01:00
parent da5f0eee25
commit 189c9cabe2
1 changed files with 2 additions and 6 deletions

View File

@ -575,12 +575,8 @@ class helper_plugin_extension_extension extends DokuWiki_Plugin {
try {
$installed = $this->installArchive("$tmp/upload.archive", true, $basename);
// purge caches
foreach($installed as $ext => $info){
$this->setExtension($ext);
$this->purgeCache();
}
// purge cache
$this->purgeCache();
}catch (Exception $e){
throw $e;
}